Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Login.AddToRole Method (String)


Adds the login account to a SQL Server role.

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

public void AddToRole(
	string role


Type: System.String

A String value that specifies the name of the role.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft