Compartir a través de


ProxyAccount.RemoveServerRole Método

Removes a Microsoft SQL Server server role from the referenced proxy account.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Agent
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Sub RemoveServerRole ( _
    serverRoleName As String _
)
'Uso
Dim instance As ProxyAccount 
Dim serverRoleName As String

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

Parámetros

  • serverRoleName
    Tipo: System.String
    A String value that specifies the SQL Server server role to be removed.

Ejemplos

Programar tareas administrativas automáticas en el Agente SQL Server

Vea también

Referencia

ProxyAccount Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo.Agent

Otros recursos

Tareas administrativas automatizadas (Agente SQL Server)

sp_update_proxy (Transact-SQL)