aspose file tools*
The moose likes JDBC and the fly likes Oracle 9i and SQL Server 2000 why the difference??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Oracle 9i and SQL Server 2000 why the difference???" Watch "Oracle 9i and SQL Server 2000 why the difference???" New topic
Author

Oracle 9i and SQL Server 2000 why the difference???

Bilal Ali
Ranch Hand

Joined: Jun 14, 2007
Posts: 66
Respected Members,
I have a question,when we are using MS Access or SQL Server 2000 as the backend database with Java application than we have to add it to System DSN first and han follow the rest of the procedure, while in case of Oracle 9i we directly pass the connection string in the program and I dont think that we add it to the System DSN in control Panel,can any one please clarify the reason?
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2476
    
    7

You specify a DSN datasource when you use the jdbcodbc bridge.
This is a jdbc driver that uses the odbc protocol to talk to your database.

Most databases provide a native jdbc driver. This driver talks to your database without using odbc.
If you use the native driver, you do not have to set up a DSN entry.

Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Just to add to what Jan has already written, you don't need to use ODBC with SQL Server, there are proper, freely available type 4 drivers for it.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
 
subject: Oracle 9i and SQL Server 2000 why the difference???
 
Similar Threads
JDBC with Oracle9i
JRun not been able to Access the DSN
Using JBuilder with JBoss 3.2.3
How to set up a DSN?
Network Adapter