J
jrefactors
The Java program connects to MS-SQL with Windows authentication, and
there is no username and password.
In the code, I do the following and it has java.sql.SQLException error.
String url =
"jdbc:microsoft:sqlserver://servername;DatabaseName=databasename";
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection con = DriverManager.getConnection(url);
any ideas? please advise.
thanks!!
there is no username and password.
In the code, I do the following and it has java.sql.SQLException error.
String url =
"jdbc:microsoft:sqlserver://servername;DatabaseName=databasename";
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection con = DriverManager.getConnection(url);
any ideas? please advise.
thanks!!