I wrote code like this to connect sqlserver database.i to load the driver, but I am not getting the connection.
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); System.out.println("class Loaded"); connection = DriverManager.getConnection( "jdbc:sqlserver://10.171.160.114:2001", "XXXXXX", "XXXXXX"); System.out.println("connected");
iam getting this error "The user is not connected to a reliable SQL Server connection" .. Please help me with this help. Thank you very much.
ravi
source share