How to find SQL Server Management Studio server name

I installed Microsoft SQL Server 2008.

When I start SQL Server Management Studio (SSMS), I get a Connect to Server login window with an empty text box for Server name . I tried many names, but I could not solve it.

How can I find / get the server name?

+75
sql-server-2008 visual-studio-2010 ssms
Apr 18 '13 at 16:18
source share
12 answers

Open SQL Server Configuration Manager (find it in the Start menu). Click SQL Server Services . The SQL Server instance name is enclosed in parentheses using the SQL Server service. If it says MSSQLSERVER , then this is the default instance. To connect to it in Management Studio, just type . (period) OR (local) and click "Connect." If the instance name is different, use .\[instance name] to connect to it (for example, if the instance name is SQL2008 , connect to .\SQL2008 ).

Also make sure that the SQL Server and SQL Server Browser services are running, otherwise you will not be able to connect.

Edit:

Here is a screenshot of how it looks on my car. In this case, I have two instances installed: SQLExpress and SQL2008 .

enter image description here

+96
Apr 18 '13 at 17:07
source share

Run this query to get the name

SELECT @@ SERVERNAME

+38
Sep 12 '13 at 13:07 on
source share

Open CMD

Run this

 SQLCMD -L 

You will get a list of the instance of SQL Server

+32
Nov 06 '14 at 4:36
source share

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

Another thing you should consider is that you may have installed the express version of SQL Server. in this case, you must enter ". \ sqlexpress" as the server name.

+23
Apr 18 '13 at 16:37
source share

start → CMD → (Write comand) The first line of SQLCMD -L is the server name if the server name is (local). Server Name: YourPcName \ SQLEXPRESS

+8
Feb 29 '16 at 18:21
source share

I also had this problem for the first time.

In the Connect to Server dialog box, check the default settings and click Connect. To connect, the Server Name field must contain the name of the computer on which SQL Server is installed. If the Database Engine is a named instance, the Server Name field should also contain the instance name in the format: computer_name \ instance_name.

So, for example, I solved the problem as follows: I typed the server name: Alex-PC \ SQLEXPRESS

Then it should work. see http://technet.microsoft.com/en-us/library/25ffaea6-0eee-4169-8dd0-1da417c28fc6 for more details

+4
Dec 11 '13 at 20:03
source share

Step 1: Verify that SQLEXPRESS and LocalDB are installed on your system. Go to SQL SERVER Configuration Manager => SQL Server Service

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

Step 2: Open Management Studios Login. (Dot) as the server name and click "Connect" [enter image description] [2] enter again. \ SQLEXPRESS as the server name and click on the link

+3
Oct 27 '15 at 5:51 on
source share

As @ Khaneddy2013 mentioned, cmd SQLCMD -L does not return the server name at startup. Bcz I just installed SSMS (local db and server were not installed). After trying to install SqlLocaLDB and SQLEXPR32_x86_ENU (32-bit OS), I was able to connect. And now the server names are also displayed in the cmd window. enter image description here

+2
Jun 23 '17 at 19:27
source share

1.You can run the following command.

EXEC xp_cmdshell 'reg query "HKLM \ Software \ Microsoft \ Microsoft SQL Server \ Instance Names \ SQL"';
GO

you can read the instance name using the registry. Invalid Ingore values.

2. Using the built-in standard report.

select instance → right click-> Reports → Standard Reports → Dashbords Server enter image description here

0
Dec 30 '16 at 11:12
source share

There are many ways mentioned above. But I use a fairly simple method (well, not as simple as SELECT @@ SERVERNAME ). When you run SQL Server Management Studio, you will offer below GUI

enter image description here

In it, the server name is the name of your server (there may be several servers according to your dev environment, select the correct one). Hope this helps :)

0
Aug 21 '17 at 4:48 on
source share

the following examples are given

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

here are your possible server names:

  • local \ MSSQLSERVER
  • local, 1433 \ MSSQLSERVER
  • MyKitchenPC, 1433 \ MSSQLSERVER
  • 10.242.137.227,1433 \ MSSQLSERVER
  • MyKitchenPC.dir.svc.mykitchencompany.com, 1433 \ MSSQLSERVER
0
04 Oct '17 at 17:27
source share

my problem was that when connecting to the SQL database in the add links wizard, look for SERVERNAME. I found it by running a query (SELECT @@ SERVERNAME) inside SQL Management Studio, and reusl is my server name. I put this in the server name field and everything worked out fine.

-one
Jul 22 '15 at 9:05
source share



All Articles