login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452) in sql 2008

后端 未结 7 2655
长发绾君心
长发绾君心 2021-01-03 22:12

I use windows 7 ultimate. I can login with windows authentication mode but SQL authentication with user sa doesn\'t work. sa user is enabled. So wh

7条回答
  •  别那么骄傲
    2021-01-03 22:22

    I faced the very same error when I was trying to connect to my SQL Server 2014 instance using sa user using SQL Server Management Studio (SSMS). I was facing this error even when security settings for sa user was all good and SQL authentication mode was enabled on the SQL Server instance.

    Finally, the issue turned out to be that Named Pipes protocol was disabled. Here is how you can enable it:

    Open SQL Server Configuration Manager application from start menu. Now, enable Named Pipes protocol for both Client Protocols and Protocols for nodes as shown in the snapshot below:

    Note: Make sure you restart the SQL Server instance after making changes.

    P.S. I'm not very sure but there is a possibility that the Named Pipes enabling was required under only one of the two nodes that I've advised. So you can try it one after the other to reach to a more precise solution.

提交回复
热议问题