java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
I got the above exception when trying to deploy my application to tomcat. but the strange thing is, I tried with a simple basic method and it works great. Any help please ???
I have done the following:
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
String connectionUrl = "jdbc:microsoft:sqlserver://localhost:1433;" + "database=DBName;" + "user=UserName;" + "password=Password";
connection = DriverManager.getConnection(connectionUrl);
source
share