0
I am using Windows 10 and have to connect to a Sqlserver 2000 database using the command line in a java application. However, I am receiving an error.
run:
ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
SQLException: No suitable driver found for jdbc:microsoft:sqlserver:
It is possible windows 10 systems connect to old database like Sqlserver 2000
in a java class, made in NETBEANS IDE I gave this command:
con = DriverManager.getConnection("jdbc:microsoft:sqlserver://servido:1433","sa","senha");
Have you added a lib containing the sqlserver driver to your project? Download of this link and add to your project’s classpath. The error is because it did not locate the sqlserver driver.
– user28595
yes sqljdbc.jar or com.microsoft.sqlserver.jdbc
– alexjosesilva
Try this https://www.microsoft.com/pt-br/download/details.aspx?id=21599 the link I gave you does not seem to be compatible with versions prior to 2008.
– user28595