AddServerRole Método
Adds a Microsoft SQL Server server role to the proxy account.
Espacio de nombres: Microsoft.SqlServer.Management.Smo.Agent
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Sub AddServerRole ( _
serverRoleName As String _
)
'Uso
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
)
Parámetros
- serverRoleName
Tipo: System. . :: . .String
A String value that specifies the SQL Server server role that is associated with the proxy account.