Professional Documents
Culture Documents
Connectivity
What is JDBC ?
In short JDBC helps the programmers to write java
applications that manage these three programming
activities:
Advantage:
Better performance than all other drivers.
No software is required at client side or server side.
Disadvantage:
Drivers depends on the Database.
Native-protocol /pure Java driver
Steps to Create Connection in
JDBC
Steps to Create Connection Between Java Program and
DB:-
1) Load the Driver.
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Where sun.jdbc.odbc may be:-
Type 1 (DEFAULT: FREEWARE).
Type 2 (PAID DRIVER).
Type 3 (PAID DRIVER).
Type 4 (PAID DRIVER).
Step 2: Make Connection
Statement s1 = con.createStatement();
Step 4 : Fire SQL Queries
1. Hibersonic
You need a Connection Strings
2. DB2 to connect with this databases
3. Infosonic
4. Postgrace
5. Progress
6. My SQL
7. ORACLE.
Connection Strings :