DatabaseRole Constructor (Database, String)
SQL Server 2012
Initializes a new instance of the DatabaseRole class.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
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.
