Specifies a permission that can be denied on an XML schema collection. For a list of the permissions, see the Remarks section later in this topic.
ON XML SCHEMA COLLECTION :: [ schema_name. ] XML_schema_collection_name
Specifies the XML schema collection on which the permission is being denied. The scope qualifier (::) is required. If schema_name is not specified, the default schema will be 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 XML schema collection 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 XML schema collection are listed in the following table, together with the more general permissions that include them by implication.
The following example denies EXECUTE permission on the XML schema collection Invoices4 to the user Wanida. The XML schema collection Invoices4 is located inside the Sales schema of the AdventureWorks database.
DENY EXECUTE ON XML SCHEMA COLLECTION::Sales.Invoices4 TO Wanida;