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 2654
长发绾君心
长发绾君心 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:45

    Login with windows authentication mode and fist of all make sure that the sa authentication is enabled in the server, I am using SQL Server Management Studio, so I will show you how to do this there.

    Right click on the server and click on Properties.

    Now go to the Security section and select the option SQL Server and Windows Authentication mode

    Once that is done, click OK. And then enable the sa login.

    Go to your server, click on Security and then Logins, right click on sa and then click on Properties.

    Now go tot Status and then select Enabled under Login. Then, click OK.

    Now we can restart the SQLExpress, or the SQL you are using. Go to Services and Select the SQL Server and then click on Restart. Now open the SQL Server Management Studio and you should be able to login as sa user.

    0 讨论(0)
提交回复
热议问题