Export (0) Print
Expand All

DatabasePermission.ToDatabasePermissionSet Method

Returns a set of database permissions, based on a single database permission, by converting a DatabasePermission object to a DatabasePermissionSet object.

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

public static DatabasePermissionSet ToDatabasePermissionSet(
	DatabasePermission permission
)

Parameters

permission
Type: Microsoft.SqlServer.Management.Smo.DatabasePermission
A DatabasePermission object that specifies the database permission.

Return Value

Type: Microsoft.SqlServer.Management.Smo.DatabasePermissionSet
A DatabasePermissionSet object that specifies a single server permission.

Community Additions

ADD
Show:
© 2014 Microsoft