|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi there,
Can somebody please help me in connecting my java program to different databases : Oracle 8i, sql server 200 and Ms Access. what changes should be there in all these three databases for ... Class.forName(.......); Connection conn= DriverManager.getConnection(URL, id,password); thank u shomzz |
|
#2
|
|||
|
|||
|
Hi this is ankur here .....
i have tried to connect sql server from java but couldnt fine the connection string .. So kindly tell me how con i get that string which is used in class.forName method |
|
#3
|
|||
|
|||
|
drivers
Quote:
You will need a driver for each different database. Drivers can be downloaded from the database provider's website or you can probably find them by googling. Use the documentation to figure out what the class name of the driver is and then use it with the Class.forName method as you posted. Of course, the driver jar file will need to be included in your classpath. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Oracle, Sql Server 2000 , Access |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|