Home > Common Problem > body text

What is the server name of sqlserver2019

下次还敢
Release: 2024-04-05 20:42:20
Original
665 people have browsed it

The default format of the server name is: \<Computer Name>\<Instance Name>. Methods to find the server name include: SQL Server Management Studio, SQL Server Configuration Manager, T-SQL query. The steps to change the server name are: stop the SQL Server service, run the sqlservr.exe -g command, and restart the SQL Server service.

What is the server name of sqlserver2019

SQL Server 2019 Server Name

SQL Server 2019 Server Name By default is:

\<Computer Name>\<Instance Name>

Where:

  • <Computer Name> Is the name of the computer where SQL Server is installed.
  • <Instance Name> is the name of the SQL Server instance.

Find the server name

There are several ways to find the SQL Server 2019 server name:

  • ##SQL Server Management Studio (SSMS): After connecting to the server, the server name is displayed in the SSMS title bar.
  • SQL Server Configuration Manager: Under "SQL Server Network Configuration", select "Protocols for <Instance Name>" and then view the "Server Name" column.
  • T-SQL Query: Use the following query to find the server name from the sys.servers system table:
<code>SELECT name FROM sys.servers WHERE is_current_server = 1;</code>
Copy after login

Change the server name

To change the SQL Server 2019 server name:

    Stop the SQL Server service in "Windows Services".
  1. Run the following command:
  2. <code>sqlservr.exe -g <新服务器名称></code>
    Copy after login
    Restart the SQL Server service.

The above is the detailed content of What is the server name of sqlserver2019. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template