Aracılığıyla paylaş


Login.AddToRole Method

Adds the login account to a SQL Server role.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Bildirim
Public Sub AddToRole ( _
    role As String _
)
'Kullanım
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

Examples

Managing Users, Roles, and Logins

See Also

Reference

Login Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Principals (Database Engine)

CREATE LOGIN (Transact-SQL)