sp_help_proxy (Transact-SQL)
Lists information for one or more proxies.
Column name | Data type | Description |
|---|---|---|
proxy_id | int | Proxy identification number. |
name | sysname | The name of the proxy. |
credential_identity | sysname | The Microsoft Windows domain name and user name for the credential associated with the proxy. |
enabled | tinyint | Whether this proxy is enabled. { 0 = not enabled, 1 = enabled } |
description | nvarchar(1024) | The description for this proxy. |
user_sid | varbinary(85) | The Windows security id of the Windows user for this proxy. |
credential_id | int | The identifier for the credential associated with this proxy. |
credential_identity_exists | int | Whether the credential_identity exists. { 0 = does not exist, 1 = exists } |
When no parameters are provided, sp_help_proxy lists information for all proxies in the instance.
To determine which proxies a login can use for a given subsystem, specify name and subsystem_name. When these arguments are provided, sp_help_proxy lists proxies that the login specified may access and that may be used for the specified subsystem.
By default, members of the sysadmin fixed server role can execute this stored procedure. Other users must be granted the SQLAgentOperatorRole fixed database role in the msdb database.
For details about SQLAgentOperatorRole, see SQL Server Agent Fixed Database Roles.
Note |
|---|
The credential_identity and user_sid columns are only returned in the result set when members of sysadmin execute this stored procedure. |
A. Listing information for all proxies
The following example lists information for all proxies in the instance.
USE msdb ; GO EXEC dbo.sp_help_proxy ; GO
B. Listing information for a specific proxy
The following example lists information for the proxy named Catalog application proxy.
USE msdb ;
GO
EXEC dbo.sp_help_proxy
@proxy_name = N'Catalog application proxy' ;
GO
