Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize


Updated: 5 December 2005

Changes the user associated with a remote service binding, or changes the anonymous authentication setting for the binding.

Topic link icon Transact-SQL Syntax Conventions

   WITH [ USER = <user_name> ] [ , ANONYMOUS = { ON | OFF } ] 
[ ; ]


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.

    WITH USER = SecurityAccount ;

Release History

5 December 2005

Changed content:
  • Corrected syntax by adding an equal sign after USER.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft