"Login failed for user 'sa'. Reason: Not associated with trusted SQL Server connection"
I know 'sa' is a valid user for the database, and I have retreived data other ways through swlDataAdapters, sqlConnections, and Datasets from design view. Any idea why I cannot expictitly connection to my DB in my code?? Or is there something stupid and small that I am overlooking?
Any help will be greatly appreciated.::Or is there something stupid and small that I am overlooking?
It is, but given the maount of people stumbling over it - you are not alone.
SQL Server simply is set not to look for the password but to use Windows integrated authentication ONLY. In this case access is checked against the account asp.net is running under, which has not enough security rights.
You need to reconfigure SQL Server to use mixed mode authentication, so that the username/password parts of the connection string actually have a real meaning. Especially the password part.
No comments:
Post a Comment