You are on page 1of 13

UNIT- IV

CHAPTER IN BOOK- 4
JDBC
PART- III
-K. Indhu

SYLLABUS COVERED
HERE

Installing and setting up JDBC

GOALS
1.
2.
3.
4.
5.
6.

Installing
Installing
Installing
Installing
Installing
Installing

JDBC
JDBC
JDBC
JDBC
JDBC
JDBC

1
2
3
4
5
6

INSTALLING JDBC- I
1. DATABASE SOFTWARE=>
. Firstly, we need a Database Software Package, that
is compatible with JDBC.
. Lets take MS- Access for our Current Syllabus.
2. DATABASE TO BE CREATED IN DATABASE
SOFTWARE=>
. Secondly, we need to create a database using the
Database Software Package.
. Lets create a Database in MS- Access called
SASTRA.

INSTALLING JDBC- 2
3. ADMIN PERMISSIONS(PRIVILEGES) TO
CREATE/UPDATE/DROP TABLE IN DATABASE=>
. Thirdly, we should get appropriate permissions needed
to be able to create, update and drop tables.
. Being owner of your laptop you would have Admin
Privileges to Create a Table in the created Database.
4. CREATE TABLE IN DATABASE & INSERT DATA=>
. Fourthly, we should create a Table in Database using
create Table statement (OR) USING EDITOR.
. Lets create a Table- Students under SASTRA
Database in our MS- Access.

INSTALLING JDBC- 2

INSTALLING JDBC- 2

INSTALLING JDBC- 3
5. JDBC ODBC BRIDGE DRIVER IN JDK-1.7 (OR) BELOW
VERSIONS OF JDK=>
. Fifth, we would use JDBC-ODBC Bridging Driver available in
JDK 1.7 or below versions for Connecting MS-Access to Java
Application.
. NOTE-> YOUR SYSTEM/LAPTOP SHOULD NOT HAVE
JDK ABOVE THAN 1.7 VERSIONS LIKE- 1.8.
6. JAVA APPLICATION (CLIENT) TO BE DEVELOPED=>
. Sixth, we should write a Java Class containing. public static void main(String args[]) {}
. As below->

E:\JavaPrograms\
MyPracticeExercises\JDBC\

INSTALLING JDBC- 4
7. IN CONTROL PANEL -> ADMINISTRATIVE TOOLS ->
DATA SOURCES (ODBC)=>
. Seventh, we would go to Control Panel -> Administrative Tools
-> Data Sources(ODBC) -> ODBC Window will be opened.

INSTALLING JDBC- 5
8. IN DATA SOURCES (ODBC) CREATE A DSN UNDER
SYSTEM TAB=>
. Eighth a DSN should be Created in ODBC as below->

INSTALLING JDBC- 6
9. COMPILE & RUN JAVA APPLICATION=>
. Ninth Compile cum Run your Java Applet / Application as
below & GET OUTPUT OF JDBC PROGRAM->

SO FAR WE STUDIED
Installing and setting up JDBC

K. INDHU

HAPPY
LEARNING!!!

You might also like