sp_helpserver

Description

Reports information about a particular remote server or about all remote servers.

Syntax

sp_helpserver [server]

Parameters

server

is the name of the remote server about which you want information.

Examples

Example 1

Displays information about the remote server GATEWAY:

sp_helpserver GATEWAY

Example 2

Displays information about the local Backup Server:

sp_helpserver SYB_BACKUP
name         network_name    security_mechanism    server_principal
           class       
   status                                 
id cost
----------   --------------  --------------------  ------------------
           -----
---------------------------------------------------------------------
      -----
SYB_BACKUP       SYB_BACKUP                  NULL                NULL
           NULL
timeouts, no net password encryption, writable, enable login redirection 1
       NULL

Example 3

Displays information about all the remote servers known to the local server:

sp_helpserver

Usage

Permissions

Any user can execute sp_helpserver.

Auditing

Values in event and extrainfo columns from the sysaudits table are:

Event

Audit option

Command or access audited

Information in extrainfo

38

exec_procedure

Execution of a procedure

  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – All input parameters

  • Proxy information – Original login name, if set proxy in effect

See also

System procedures sp_addserver, sp_dropserver, sp_helpremotelogin, sp_serveroption