Export (0) Print
Expand All

Server.Deny Method

Denies the specified set of permissions for the specified grantees on the instance of SQL Server.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Deny(ServerPermissionSet, String) Denies the specified set of permissions for the specified grantee on the instance of SQL Server.
Public method Deny(ServerPermissionSet, String[]) Denies the specified set of permissions for the specified grantees on the instance of SQL Server.
Public method Deny(ServerPermissionSet, String, Boolean) Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the instance of SQL Server.
Public method Deny(ServerPermissionSet, String[], Boolean) Denies the specified set of permissions for the specified grantees and other users that the grantee granted the specified set of permissions on the instance of SQL Server.
Top

The Deny method has several overloads that give you a choice of whether to deny permissions to a single grantee or several grantees. You can also decide whether to include the Cascade option. The Cascade option determines whether the permissions that were denied by the grantees are also denied to other users.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft