The default format of the server name is: \
\ . 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.
SQL Server 2019 Server Name
SQL Server 2019 Server Name By default is:
\
Where:
Is the name of the computer where SQL Server is installed.
is the name of the SQL Server instance.Find the server name
There are several ways to find the SQL Server 2019 server name:
system table:
SELECT name FROM sys.servers WHERE is_current_server = 1;
Change the server name
To change the SQL Server 2019 server name:sqlservr.exe -g <新服务器名称>
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!