View Single Post
  #1 (permalink)  
Old 05-16-2008, 02:51 PM
rmaadil rmaadil is offline
Member
 
Join Date: May 2008
Posts: 9
rmaadil is on a distinguished road
Having problem in connecting with SQL Server 2005
I am using the following code for getting connection to the SQL Server 2005 Database:

Class.forName("com.microsoft.jdbc.sqlserver.SQLSer verDriver");

I have debuged the code by placing a breakpoint exactly at this line and whenever I step over this statement it generates an exception and then when I print the message in the catch block, I got the following message:

com.microsoft.jdbc.sqlserver.SQLServerDriver

which is exactly the string I am passing to the above function.

Can anybody help me?
Reply With Quote
Sponsored Links