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 2656
长发绾君心
长发绾君心 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:20

    1. Click on Start menu > Programs > Microsoft Sql Server > Configuration Tools

    2. Select Sql Server Surface Area Configuration.

    3. Now click on Surface Area configuration for services and connections

    4. On the left pane of pop up window click on Remote Connections and Select Local and Remote connections radio button.

    5. Select Using both TCP/IP and named pipes radio button.

    6. click on apply and ok.

    Now when try to connect to sql server using sql username and password u'll get the error mentioned below

    Cannot connect to SQLEXPRESS.

    ADDITIONAL INFORMATION:

    Login failed for user 'username'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452) ation To fix this error follow steps mentioned below

    1. connect to sql server using window authentication.

    2. Now right click on your server name at the top in left pane and select properties.

    3. Click on security and select sql server and windows authentication mode radio button.

    4. Click on OK.

    5. restart sql server servive by right clicking on server name and select restart.

    Now your problem should be fixed and u'll be able to connect using sql server username and password.

    Have fun. Ateev Gupta

提交回复
热议问题