i wrote the code like this to connect sqlserver database.i load the driverclass,but iam not getting 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 associated with a trusted SQL Server connection. ".please advice me on this.any help greately appreciated.