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
)

Parameters

role
Type: System.String

A String value that specifies the name of the role.

Return to top
Show: