Aracılığıyla paylaş


ServerPermissionSet Constructor (ServerPermissionSet)

Initializes a new instance of the ServerPermissionSet class based on the specified set of permissions.

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

Syntax

'Bildirim
Public Sub New ( _
    oServerPermissionSet As ServerPermissionSet _
)
'Kullanım
Dim oServerPermissionSet As ServerPermissionSet

Dim instance As New ServerPermissionSet(oServerPermissionSet)
public ServerPermissionSet(
    ServerPermissionSet oServerPermissionSet
)
public:
ServerPermissionSet(
    ServerPermissionSet^ oServerPermissionSet
)
new : 
        oServerPermissionSet:ServerPermissionSet -> ServerPermissionSet
public function ServerPermissionSet(
    oServerPermissionSet : ServerPermissionSet
)

Parameters

Remarks

The ServerPermissionSet object is used to grant, deny, revoke, and enumerate database permissions (also known as statement permissions).

Examples

Granting, Revoking, and Denying Permissions

See Also

Reference

ServerPermissionSet Class

ServerPermissionSet Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Permissions (Database Engine)

sys.server_permissions (Transact-SQL)