Am trying to connect MS SQL server through java web applications.
Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");
connection= DriverManager
sqljdbc_auth.dll
is need to use windows authentication or Kerberos authentication.
Get the dll from Microsoft and install it either by:
drop on the java bin folder.
Not recommended if you want to package the applications with all the dependencies. Also, it requires to find what java version is being used and from what path.
drop the library on some folder and then add the path in the command line:
java -Djava.library.path=...
The mssql-jdbc
driver and the sqljdbc_auth.dll
should be:
Check also the jdbc comparability matrix with java versions.