Reports information about a particular remote or replication server, or about all servers of both types. Provides the server name, the server’s network name, the server’s replication status, and the server’s identification number.
sp_helpserver [[@server =] 'server']
[,[@optname =] 'option']
[,[@show_topology =] 'show_topology']
Value | Description |
---|---|
collation compatible | Affects the Distributed Query execution against linked servers. If this option is set to true, Microsoft SQL Server assumes that all characters in the linked server are compatible with the local server, with regard to character set and collation sequence (or sort order). |
data access | Enables and disables a linked server for distributed query access. |
dist | Distributor. |
dpub | Remote Publisher to this Distributor. |
pub | Publisher. |
rpc | Enables RPC from the given server. |
rpc out | Enables RPC to the given server. |
sub | Subscriber. |
system | For internal use only. |
0 (success) or 1 (failure).
Column name | Data type | Description |
---|---|---|
name | sysname | Server name |
network_name | sysname | Server’s network name |
status | varchar(70) | Server status |
id | char(4) | Server’s identification number |
A server can have more than one status.
Execute permissions default to the public role.
This example displays information about all servers (sp_helpserver with no parameters).
USE master
EXEC sp_helpserver
This example displays all information about the SEATTLE2 server.
USE master
EXEC sp_helpserver 'SEATTLE2'