Denies permissions on a member of the OBJECT class of securables. These are the members of the OBJECT class: tables, views, table-valued functions, stored procedures, extended stored procedures, scalar functions, aggregate functions, service queues, and synonyms.
Included for ANSI-92 compliance. Does not change the behavior of ALL.
Specifies the name of a column in a table, view, or table-valued function on which the permission is being denied. The parentheses ( ) are required. Only SELECT, REFERENCES, and UPDATE permissions can be denied on a column. column can be specified in the permissions clause or after the securable name.
A table-level DENY does not take precedence over a column-level GRANT. This inconsistency in the permissions hierarchy has been preserved for backward compatibility.
ON [ OBJECT :: ] [ schema_name ] . object_name
Specifies the object on which the permission is being denied. The OBJECT phrase is optional if schema_name is specified. If the OBJECT phrase is used, the scope qualifier (::) is required. If schema_name is not specified, the default schema is used. If schema_name is specified, the schema scope qualifier (.) is required.
Specifies the principal to which the permission is being denied.
Indicates that the permission being denied is also denied to other principals to which it has been granted by this principal.
Specifies a principal from which the principal executing this query derives its right to deny the permission.
Specifies a database user.
Specifies a database role.
Specifies an application role.
Specifies a database user mapped to a Windows user.
Specifies a database user mapped to a Windows group.
Specifies a database user mapped to a certificate.
Specifies a database user mapped to an asymmetric key.
Specifies a database user with no corresponding server-level principal.
An object is a schema-level securable contained by the schema that is its parent in the permissions hierarchy. The most specific and limited permissions that can be denied on an object are listed in the following table, together with the more general permissions that include them by implication.