sp_msx_set_account (Transact-SQL)
Sets the SQL Server Agent master server account name and password on the target server.
- [ @credential_name = ] 'credential_name'
-
The name of the credential to use to log in to the master server. The name provided must be the name of an existing credential. Either credential_name or credential_id must be specified.
- [ @credential_id = ] credential_id
-
The identifier for the credential to use to log in to the master server. The identifier must be an identifier for an existing credential. Either credential_name or credential_id must be specified.
SQL Server 2005 uses credentials to store the user name and password information that a target server uses to log in to a master server. This procedure sets the credential that SQL Server Agent for this target server uses to log in to the master server.
The credential specified must be an existing credential. For more information about creating a credential, see CREATE CREDENTIAL (Transact-SQL).
Reference
CREATE CREDENTIAL (Transact-SQL)sp_msx_get_account (Transact-SQL)