How to find server name of SQL Server Management Studio

后端 未结 16 1382
深忆病人
深忆病人 2020-11-27 09:53

I installed Microsoft SQL Server 2008.

When I start SQL Server Management Studio (SSMS), I get the Connect to Server login window with a blank textbox f

相关标签:
16条回答
  • 2020-11-27 10:12

    my problem was that when connecting to SQL Database in the add reference wizard, to find the SERVERNAME. i found it by: running a query(SELECT @@SERVERNAME) inside SQL management studio and the reusl was my servername. I put that in my server name box and it worked all fine.

    0 讨论(0)
  • 2020-11-27 10:13

    There are many ways mentioned above. But I use rather simple way (well not simple as SELECT @@SERVERNAME). When you start SQL server management studio you will prompt below GUI

    In there Server name is your server name (There may have multiple servers according to you dev environment choose correct one). Hope this helps :)

    0 讨论(0)
  • 2020-11-27 10:14

    Open CMD

    Run this

    SQLCMD -L
    

    You will get list of SQL Server instance

    0 讨论(0)
  • 2020-11-27 10:19

    Typing sp_helpserver will give you a list. As others have noted, there are multiple ways, some with alias' and such. This stored proc may return multiple lines but could get you closer to your answer.

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