sp_grant_proxy_to_subsystem (Transact-SQL)
SQL Server 2012
Grants a proxy access to a subsystem.
A. Granting access to a subsystem by ID
The following example grants the proxy Catalog application proxy access to the ActiveX Scripting subsystem.
USE msdb ;
GO
EXEC dbo.sp_grant_proxy_to_subsystem
@proxy_name = 'Catalog application proxy',
@subsystem_id = 2;
GO
B. Granting access to a subsystem by name.
The following example grants the proxy Catalog application proxy access to the SSIS package execution subsystem.
USE msdb ;
GO
EXEC dbo.sp_grant_proxy_to_subsystem
@proxy_name = N'Catalog application proxy',
@subsystem_name = N'Dts' ;
GO

Important