sp_remoteoption

Displays or changes remote login options.

Syntax

sp_remoteoption [remoteserver[, loginame 
	[, remotename[, optname[, optvalue]]]]]

Parameters

Examples

Usage

There are additional considerations when using sp_remoteoption:
  • To display a list of the remote login options, execute sp_remoteoption with no parameters.

  • If you have used sp_addremotelogin to map all users from a remote server to the same local name, specify trusted for those users. For example, if all users from server GOODSRV that are mapped to “albert” are trusted, specify:

    sp_remoteoption GOODSRV, albert, NULL, trusted, true

    If the logins are not specified as trusted, they cannot execute RPCs on the local server unless they specify local server passwords when they log into the remote server. When they use Open Client Client-Library, users can specify a password for server-to-server connections with the routine ct_remote_pwd. isql and bcp do not permit users to specify a password for RPC connections.

    If users are logged into the remote server using “unified login”, the logins must also be trusted on the local server, or they must specify passwords for the server when they log into the remote server.

    See the System Administration Guide for more information about setting up servers for remote procedure calls and for using “unified login.”

See also isql in the Utility Guide.

Permissions

The permission checks for sp_remoteoption differ based on your granular permissions settings.

SettingDescription
Enabled

With granular permissions enabled, you must be a user with manage any remote login privilege.

Disabled

With granular permissions disabled, you must be a user with sso_role.

Auditing

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

InformationValues
Event

38

Audit option

exec_procedure

Command or access audited

Execution of a procedure

Information in extrainfo
  • 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

Related reference
sp_addremotelogin
sp_dropremotelogin
sp_helpremotelogin