cannot connect to pc-name\SQLEXPRESS

后端 未结 11 1086
既然无缘
既然无缘 2020-12-29 03:23

While trying to connect to SQL server 2005 standard edition through SQL Server Management Studio 2005 I get the following error:

相关标签:
11条回答
  • 2020-12-29 03:26

    try using IP instead of pc name. If the ip working, then it might be the name pipe is not enable. If it;s still not working then the login using windows might be disabled.

    0 讨论(0)
  • 2020-12-29 03:29

    Use (LocalDB)\MSSQLLocalDB as the server name

    0 讨论(0)
  • 2020-12-29 03:29

    When you get this error.

    Follow these steps then you solve your problem

    1. Open command prompt by pressing (window + r) keys or Click on windows Button and Type Run then type services.msc and click OK or press Enter key.

    2.Find SQL Server (SQLEXPRESS).

    3.Now see left upper side and click start.

    4.If Service show error then right click on SQL Express and then click on Properties.

    5.Then click on Logon Tab.

    6.Enter Username and Password of Windows Authentication

    7.Then Start your Service

    8.Problem will be solve and run your query

    0 讨论(0)
  • 2020-12-29 03:34

    I had this problem. So I put like this: PC-NAME\SQLSERVER Since the SQLSERVER the instance name that was set at installation.

    Authentication: Windows Authentication

    Connects !!!

    0 讨论(0)
  • 2020-12-29 03:35

    go to services and start the ones related to SQL

    0 讨论(0)
  • 2020-12-29 03:35

    My issue occurs when I add a PC to a domain. Restarting the service, making sure it's running, that it has the correct credentials to run, etc, as in other answers doesn't work. I don't know exactly what the problem is, but I can't even log in with the local user anymore to give the domain user access. Here's the steps that work for me:

    In SSMS

    • View > Registered Servers
    • Database Engine > Local Server Groups > right-click pcname\sqlexpress
    • Delete > Yes
    • Right-click Local Server Groups > Tasks > Register Local Servers
    • It confirms that it re-registered. pcname\sqlexpress reappears.

    I'm then able to log in with the local windows auth'd user again, my databases are all there and everything. I then go about my business adding the domain user to Security > Logins.

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