Component Integration Services only Defines a passthrough connection to a remote server for a specific user, which allows the named user to enter passthrough mode automatically at login.
sp_autoconnect server, {true | false} [, loginame]
is the name of a server to which an automatic passthrough connection is made. server must be the name of a remote server already added by sp_addserver. This server cannot be the local server.
determines whether the automatic passthrough connection is enabled or disabled for server. true enables the automatic connection. false disables it.
specifies the name of the user for which automatic connection is required. If no loginame is supplied, the autoconnect status is modified for the current user.
The current user is automatically connected to the server SYBASE the next time that user logs in. The user’s connection is placed in passthrough mode:
sp_autoconnect SYBASE, true
Disables the autoconnect feature for the user “steve”:
sp_autoconnect SYBASE, false, steve
sp_autoconnect defines a passthrough connection to a remote server for a specific user, which allows the named user to enter passthrough mode automatically at login.
The System Administrator must grant connect to permission to the login prior to executing sp_autoconnect.
Use sp_autoconnect only when Component Integration Services is installed and configured.
Do not change the autoconnect status of the “sa” login account.
Changing the autoconnect status does not occur immediately for users who are currently connected. They must disconnect from the local server, then reconnect before the change is made.
Use disconnect to exit passthrough mode.
Only a System Administrator can execute sp_autoconnect.
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 |
|
Commands connect to...disconnect, grant
System procedures sp_addlogin, sp_addserver, sp_passthru, sp_remotesql