Sqlserver-dba.com

Login failed for user 'username'. The user is not associated with a trusted SQL Server connection

A user approached me with the error message :

 Login failed for user 'mysqlaccount'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452)

 Login failed for user 'mysqlaccount'. The user is not associated with a trusted SQL Server connection. [CLIENT: 90.223.37.45]

 The reason this error occured was  SQL server had been configured to operate in "Windows Authentication Mode (Windows Authentication)" which doesn't allow the use of SQL accounts.

 In those circumstances, change the Authentication Mode of the SQL server from "Windows Authentication Mode (Windows Authentication)" to "Mixed Mode (Windows Authentication and SQL Server Authentication)".

 Change the authentication mode by :

  1. On SQL Server Management Studio Object Explorer | right-click the server | click Properties.
  2. On the Security page | Server authentication | select the new server authentication mode | click OK.
  3. On SQL Server Management Studio dialog box |  click OK to restart SQL Server.

 

 The most likely reason  it was in Windows Authentication mode initially as it was chosen during the install process. But as indicated this can be changed easily. Consider the consequences of changing modes as this may contradict the Enterprise security policy

Source:Jack Vamvas (http://www.sqlserver-dba.com)


Author: Jack Vamvas (http://www.sqlserver-dba.com)

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact