Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Databases > Re: java connec...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 3739 of 3800
Post > Topic >>

Re: java connect to MSSQL2k

by =?ISO-8859-1?Q?Arne_Vajh=F8j?= <arne@[EMAIL PROTECTED] > May 5, 2008 at 08:10 AM

a wrote:
> I am not able to load the driver for MSSQL2000 server, even I have put
all 3
> jar files, mssqlserver.jar, msutil.jar, msbase.jar in lib folder and
have
> tried to restart the tomcat.
> I got ClassNotFoundException. How should I set the Class.forName?
> My code,
> 
>  public DBConnect(String host, String dbname, String username, String
> password)
>  {
>   //Load Drv
>   try
>   {
>    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");

Try:

com.microsoft.jdbc.sqlserver.SQLServerDriver

for 2000 (the one you use are for 2005).

Arne
 




 2 Posts in Topic:
java connect to MSSQL2k
"a" <a@[EMAI  2008-05-05 08:49:18 
Re: java connect to MSSQL2k
=?ISO-8859-1?Q?Arne_Vajh=  2008-05-05 08:10:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 4:46:09 CDT 2008.