Understanding remote logins

You can execute stored procedures on a remote Adaptive Server using RPCs if you have been granted access to the remote server and an appropriate database on that server. Remote execution of a stored procedure is a remote procedure call (RPC).

To obtain access to a remote server:

These procedures are discussed in the System Administration Guide.

When you can access the remote server, you can execute an RPC by qualifying the stored procedure name with the name of the remote server. For example, to execute sp_help on the GATEWAY server, enter:

GATEWAY...sp_help

Or, to fully qualify the name of the procedure, include the name of the database containing the procedure and the name of its owner:

GATEWAY.sybsystemprocs.dbo.sp_help

In addition, if a System Security Officer has set up the local and remote servers to use network-based security services, one or more of the following functions may be in effect when you execute RPCs:

If you are using the unified login feature of network-based security, a System Security Officer can use sp_remoteoption on the remote server to establish you as a trusted user who does not need to supply a password to the remote server. If you are using Open Client™ Client-Library™/C, you can use ct_remote_pwd to specify a password for the remote server.

For more information about network-based security services, see the System Administration Guide.