Server.Deny Method

 

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

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

NameDescription
System_CAPS_pubmethodDeny(ServerPermissionSet, String)

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

System_CAPS_pubmethodDeny(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.

System_CAPS_pubmethodDeny(ServerPermissionSet, String[])

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

System_CAPS_pubmethodDeny(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.

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.

Return to top
Show: