How to find server name of SQL Server Management Studio

后端 未结 16 1379
深忆病人
深忆病人 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 09:56

    As mentioned by @Khaneddy2013, the cmd SQLCMD -L returns no server name when I run. Bcz I only have installed the SSMS (local db and server were not installed). After tried installing SqlLocaLDB and SQLEXPR32_x86_ENU(32 bit OS) I was able to connect. And now the cmd window shows the server names too.

    0 讨论(0)
  • 2020-11-27 09:56

    Step1: Ensure SQLEXPRESS and LocalDB installed on your system Go to SQL SERVER Configuration Manager => SQL Server Service

    If nothing listed for SQL Server services, install below components (for 64 bit OS) 1. SqlLocalDB 2. SQLEXPR_x64_ENU 3. SQLEXPRADV_x64_ENU 4. SQLEXPRWT_x64_ENU

    Step2: Open Management Studios Enter . (Dot) as server name and click on Connect [enter image description here][2] Else Enter .\SQLEXPRESS as server name and click on connect

    0 讨论(0)
  • 2020-11-27 09:59

    given the following examples

    • SQL Instance Name: MSSQLSERVER
    • Port: 1433
    • Hostname: MyKitchenPC
    • IPv4: 10.242.137.227
    • DNS Suffix: dir.svc.mykitchencompany.com

    here are your possible servernames:

    • localhost\MSSQLSERVER
    • localhost,1433\MSSQLSERVER
    • MyKitchenPC,1433\MSSQLSERVER
    • 10.242.137.227,1433\MSSQLSERVER
    • MyKitchenPC.dir.svc.mykitchencompany.com,1433\MSSQLSERVER
    0 讨论(0)
  • 2020-11-27 09:59

    simply type .\sqlexpress as the Server Name

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

    start -> CMD -> (Write comand) SQLCMD -L first line is Server name if Server name is (local) Server name is : YourPcName\SQLEXPRESS

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

    the default server name is your computer name, but you can use "." (Dot) instead of local server name.

    another thing you should consider is maybe you installed sql server express edition. in this case you must enter ".\sqlexpress" as server name.

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