(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]
sp_autoconnect MYSERVER, true
sp_autoconnect MYSERVER, 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.
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.
See also connect to...disconnect, grant in Reference Manual: Commands.
The permission checks for sp_autoconnect differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be a user with manage any login privilege. Any user can execute sp_autoconnect for themselves. |
Disabled | With granular permissions disabled, you must be a user with sa_role. Any user can execute sp_autoconnect for themselves. |
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 |
|