sp_helpremotelogin

Description

Reports information about a particular remote server’s logins or about all remote server logins.

Syntax

sp_helpremotelogin [remoteserver[, remotename]]

Parameters

remoteserver

is the name of the server about which to report remote login information.

remotename

is the name of a particular remote user on the remote server.

Examples

Example 1

Displays information about all the remote users of the remote server GATEWAY:

sp_helpremotelogin GATEWAY

Example 2

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

sp_helpremotelogin

Usage

Permissions

Any user can execute sp_helpremotelogin. Permission checks do not differ based on the granular permissions settings.

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_addremotelogin, sp_dropremotelogin, sp_helpserver