ALTER REMOTE SERVICE BINDING (Transact-SQL)
Applies To: SQL Server 2014, SQL Server 2016 Preview
Changes the user associated with a remote service binding, or changes the anonymous authentication setting for the binding.
Applies to: SQL Server (SQL Server 2008 through current version).
The name of the remote service binding to change. Server, database, and schema names cannot be specified.
- WITH USER = <user_name>
Specifies the database user that holds the certificate associated with the remote service for this binding. The public key from this certificate is used for encryption and authentication of messages exchanged with the remote service.
Specifies whether anonymous authentication is used when communicating with the remote service. If ANONYMOUS = ON, anonymous authentication is used and the credentials of the local user are not transferred to the remote service. If ANONYMOUS = OFF, user credentials are transferred. If this clause is not specified, the default is OFF.
The public key in the certificate associated with user_name is used to authenticate messages sent to the remote service and to encrypt a session key that is then used to encrypt the conversation. The certificate for user_name must correspond to the certificate for a login in the database that hosts the remote service.
Permission for altering a remote service binding defaults to the owner of the remote service binding, members of the db_owner fixed database role, and members of the sysadmin fixed server role.
The user that executes the ALTER REMOTE SERVICE BINDING statement must have impersonate permission for the user specified in the statement.
To alter the AUTHORIZATION for a remote service binding, use the ALTER AUTHORIZATION statement.
The following example changes the remote service binding APBinding to encrypt messages by using the certificates from the account SecurityAccount.
ALTER REMOTE SERVICE BINDING APBinding WITH USER = SecurityAccount ;