-
Trusted Connection Error
I am getting the following error.
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
Ok, here is the kicker:
1. I have an asp.net application which already runs on the web server and accesses a set of web services. It does not get this error.
2. I am running SQL Server 2000 using both windows and standard authentication.
3. I built a WINDOWS Form user interface to access the same web services mentioned above, that is when I get the error listed.
Why does the windows app not get throught to SQL Server?
-
Check your connection string to make sure you are telling SQL that it's a trusted connection.
Code:
"Data Source=mySqlServer;Integrated Security=SSPI;Initial Catalog=myDB"