sp_helpserver (Transact-SQL)
Reports information about a particular remote or replication server, or about all servers of both types. Provides the server name, the network name of the server, the replication status of the server, the identification number of the server, and the collation name. Also provides time-out values for connecting to, or queries against, linked servers.
Column name | Data type | Description |
|---|---|---|
name | sysname | Server name. |
network_name | sysname | Network name of the server. |
status | varchar(70) | Server status. |
id | char(4) | Identification number of the server. |
collation_name | sysname | Collation of the server. |
connect_timeout | int | Time-out value for connecting to linked server. |
query_timeout | int | Time-out value for queries against linked server. |
A. Displaying information about all servers
The following example displays information about all servers by using sp_helpserver with no parameters.
USE master; GO EXEC sp_helpserver
B. Displaying information about a specific server
The following example displays all information about the SEATTLE2 server.
USE master; GO EXEC sp_helpserver 'SEATTLE2'
