aspose file tools*
The moose likes JDBC and the fly likes Driver String for SQL Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Driver String for SQL Server" Watch "Driver String for SQL Server" New topic
Author

Driver String for SQL Server

malcolm bailey
Greenhorn

Joined: Aug 10, 2001
Posts: 22
Hi...
Does anyone know a driver string for use in java to connect to SQL Server? At the moment I'm using:
DriverManager.registerDriver(new sun.jdbc.Jdbc.OdbcDriver());
but I get the error message:
identifier sun.jdbc.Jdbc.OdbcDriver() Driver not found...
malcolm bailey
Greenhorn

Joined: Aug 10, 2001
Posts: 22
Me again...
It was just a daft mistake, in case I confused anyone. It works with:
sun.jdbc.odbc.JdbcOdbcDriver()
oops...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Driver String for SQL Server
 
Similar Threads
JDBC with SQL server 2000
Query in JDBC connection
Using a Datasource to connect to database
New JDBC driver in VAJ 4
What will be URL for SQL server 2008?