Not
Åtkomst till denna sida kräver auktorisation. Du kan prova att logga in eller byta katalog.
Åtkomst till denna sida kräver auktorisation. Du kan prova att byta katalog.
Adds the login account to a SQL Server role.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub AddToRole ( _
role As String _
)
'Usage
Dim instance As Login
Dim role As String
instance.AddToRole(role)
public void AddToRole(
string role
)
public:
void AddToRole(
String^ role
)
member AddToRole :
role:string -> unit
public function AddToRole(
role : String
)
Parameters
- role
Type: System.String
A String value that specifies the name of the role.
Examples
Managing Users, Roles, and Logins
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace