Displays or changes remote login options.
sp_remoteoption [remoteserver[, loginame [, remotename[, optname[, optvalue]]]]]
sp_remoteoption
Settable remote login options. remotelogin_option ------------------------ trusted
sp_remoteoption GATEWAY, churchy, pogo, trusted, true
sp_remoteoption GATEWAY, churchy, pogo, trusted, false
sp_remoteoption GATEWAY, albert, NULL, trusted, true
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.
The permission checks for sp_remoteoption differ based on your granular permissions settings.
Setting | Description |
---|---|
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. |
Values in event and extrainfo columns from the sysaudits table are:
Information | Values |
---|---|
Event | 38 |
Audit option | exec_procedure |
Command or access audited | Execution of a procedure |
Information in extrainfo |
|