I get this error when trying to connect to SQL Server.
Error is:
Login failed for user ''. The user is not associated with a trusted SQL Server connection.
Server resides remotely. From my localhost I am trying to connect using this URL:
"jdbc:sqlserver://serverName:portNo;integratedSecurity=true;databaseName=myDB"
But when I use the msSQL studio tool to connect to sql server doing windows authentication, it connects me without any error.
What is the difference in two cases?
Any help is appreciated.
Thanks