SQL Server Connection Help

Questions and answers regarding general SQL and backend databases

SQL Server Connection Help

Postby jblarsen » Tue Jun 08, 2004 10:52 pm

I am trying to connect to a SQL 2000 server through JDBC and keep getting the following error:

JDBC Driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver' not found in classpath or drivers directory

I have a CLASSPATH variable set to CLASSPATH=C:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;c:\program files\Microsoft SQL Serve
ver for JDBC\lib\msutil.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar

I know it is simple. What am I missing?

Jay
jblarsen
 
Posts: 14
Joined: Tue Jun 08, 2004 10:48 pm

Fixed!

Postby jblarsen » Wed Jun 09, 2004 6:42 pm

For all the java newbies like me...

I placed the MS JDBC msbase.jar, mssqlserver.jar, and msutil.jar files into the C:\Program Files\Servoy\drivers directory and now it works.
jblarsen
 
Posts: 14
Joined: Tue Jun 08, 2004 10:48 pm


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 37 guests