Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

I am trying to connect to my sqlserver database using JDBC code. I have some problem with the syntax. I have SQLServer database in my local system.

I wrote the syntax,
connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://lm1189//:What_I_Pay");
// lm1189 is the name of my system. through which i am connecting with SQLServer database.

But in this i am getting Error Exception : No suitable driver found for jdbc:microsoft:sqlserver://alm1189//:What_I_Pay.
Pls help if you have any idea abt the sys name or proper syntax.
thanks,
Rob [:)]
Posted
Updated 23-Sep-16 8:47am
v2

Some useful information here[^].
 
Share this answer
 
https://sites.google.com/site/stark9000/java

add driver.jar (http://jdbc.postgresql.org/download.html).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900