ProxyAccount.AddServerRole 메서드

Adds a Microsoft SQL Server server role to the proxy account.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Sub AddServerRole ( _
    serverRoleName As String _
)
‘사용 방법
Dim instance As ProxyAccount 
Dim serverRoleName As String

instance.AddServerRole(serverRoleName)
public void AddServerRole(
    string serverRoleName
)
public:
void AddServerRole(
    String^ serverRoleName
)
member AddServerRole : 
        serverRoleName:string -> unit
public function AddServerRole(
    serverRoleName : String
)

매개 변수

  • serverRoleName
    유형: System.String
    A String value that specifies the SQL Server server role that is associated with the proxy account.

SQL Server 에이전트에서 자동 관리 태스크 예약

참고 항목

참조

ProxyAccount 클래스

Microsoft.SqlServer.Management.Smo.Agent 네임스페이스

관련 자료

관리 태스크 자동화(SQL Server 에이전트)

sp_add_proxy(Transact-SQL)

sp_grant_proxy_to_subsystem(Transact-SQL)