DatabaseRole Constructor (Database, String)
Collapse the table of content
Expand the table of content

DatabaseRole Constructor (Database, String)

 

Initializes a new instance of the DatabaseRole class.

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

public DatabaseRole(
	Database database,
	string name
)

Parameters

database
Type: Microsoft.SqlServer.Management.Smo.Database

A Database object value that specifies the database on which to create the role.

name
Type: System.String

A String value that specifies the name of the database role.

Return to top
Show:
© 2016 Microsoft