拒绝搜索属性列表权限 (Transact-SQL)DENY Search Property List Permissions (Transact-SQL)

适用于: 是SQL Server 是Azure SQL 数据库 是Azure Synapse Analytics (SQL DW) 是并行数据仓库 APPLIES TO: YesSQL Server YesAzure SQL Database YesAzure Synapse Analytics (SQL DW) YesParallel Data Warehouse

拒绝搜索属性列表的权限。Denies permissions on a search property list.

主题链接图标 Transact-SQL 语法约定Topic link icon Transact-SQL Syntax Conventions

语法Syntax

DENY permission [ ,...n ] ON  
        SEARCH PROPERTY LIST :: search_property_list_name  
    TO database_principal [ ,...n ] [ CASCADE ]  
    [ AS denying_principal ]  

参数Arguments

permission permission
权限的名称。Is the name of a permission. 本主题后面的“备注”部分中介绍了不同权限与安全对象之间的有效映射。The valid mappings of permissions to securables are described in the "Remarks" section, later in this topic.

ON SEARCH PROPERTY LIST ::search_property_list_name ON SEARCH PROPERTY LIST ::search_property_list_name
指定要拒绝权限的搜索属性列表。Specifies the search property list on which the permission is being denied. 需要使用作用域限定符 ::。The scope qualifier :: is required.

database_principal database_principal
指定要对其拒绝权限的主体。Specifies the principal to which the permission is being denied. 可以是下列主体之一:The principal can be one of the following:

  • 数据库用户database user
  • 数据库角色database role
  • 应用程序角色application role
  • 映射到 Windows 登录名的数据库用户database user mapped to a Windows login
  • 映射到 Windows 组的数据库用户database user mapped to a Windows group
  • 映射到证书的数据库用户database user mapped to a certificate
  • 映射到非对称密钥的数据库用户database user mapped to an asymmetric key
  • 未映射到服务器主体的数据库用户。database user not mapped to a server principal.

CASCADECASCADE
指示要拒绝的权限也会被对此主体授予该权限的其他主体拒绝。Indicates that the permission being denied is also denied to other principals to which it has been granted by this principal.

denying_principal denying_principal
指定一个主体,执行该查询的主体从该主体获得拒绝授予该权限的权利。Specifies a principal from which the principal executing this query derives its right to deny the permission. 可以是下列主体之一:The principal can be one of the following:

  • 数据库用户database user
  • 数据库角色database role
  • 应用程序角色application role
  • 映射到 Windows 登录名的数据库用户database user mapped to a Windows login
  • 映射到 Windows 组的数据库用户database user mapped to a Windows group
  • 映射到证书的数据库用户database user mapped to a certificate
  • 映射到非对称密钥的数据库用户database user mapped to an asymmetric key
  • 未映射到服务器主体的数据库用户。database user not mapped to a server principal.

备注Remarks

SEARCH PROPERTY LIST(搜索属性列表权限)SEARCH PROPERTY LIST Permissions

搜索属性列表是一个数据库级安全对象,包含在权限层次结构中作为其父级的数据库中。A search property list is a database-level securable contained by the database that is its parent in the permissions hierarchy. 下表列出了可拒绝的最具体的搜索属性列表限定权限,以及隐含这些权限的更一般的权限。The most specific and limited permissions that can be denied on a search property list are listed in the following table, together with the more general permissions that include them by implication.

搜索属性列表权限Search property list permission 搜索属性列表权限隐含的权限Implied by search property list permission 数据库权限隐含的权限Implied by database permission
ALTERALTER CONTROLCONTROL ALTER ANY FULLTEXT CATALOGALTER ANY FULLTEXT CATALOG
CONTROLCONTROL CONTROLCONTROL CONTROLCONTROL
REFERENCESREFERENCES CONTROLCONTROL REFERENCESREFERENCES
TAKE OWNERSHIPTAKE OWNERSHIP CONTROLCONTROL CONTROLCONTROL
VIEW DEFINITIONVIEW DEFINITION CONTROLCONTROL VIEW DEFINITIONVIEW DEFINITION

权限Permissions

需要对全文目录的 CONTROL 权限。Requires CONTROL permission on the full-text catalog. 如果使用 AS 选项,则指定的主体必须拥有全文目录。If using the AS option, the specified principal must own the full-text catalog.

另请参阅See Also

CREATE APPLICATION ROLE (Transact-SQL) CREATE APPLICATION ROLE (Transact-SQL)
CREATE ASYMMETRIC KEY (Transact-SQL) CREATE ASYMMETRIC KEY (Transact-SQL)
CREATE CERTIFICATE (Transact-SQL) CREATE CERTIFICATE (Transact-SQL)
CREATE SEARCH PROPERTY LIST (Transact-SQL) CREATE SEARCH PROPERTY LIST (Transact-SQL)
DENY (Transact-SQL) DENY (Transact-SQL)
加密层次结构 Encryption Hierarchy
sys.fn_my_permissions (Transact-SQL) sys.fn_my_permissions (Transact-SQL)
GRANT 搜索属性列表权限 (Transact-SQL) GRANT Search Property List Permissions (Transact-SQL)
HAS_PERMS_BY_NAME (Transact-SQL) HAS_PERMS_BY_NAME (Transact-SQL)
主体(数据库引擎) Principals (Database Engine)
REVOKE 搜索属性列表权限 (Transact-SQL) REVOKE Search Property List Permissions (Transact-SQL)
sys.fn_builtin_permissions (Transact-SQL) sys.fn_builtin_permissions (Transact-SQL)
sys.registered_search_property_lists (Transact-SQL) sys.registered_search_property_lists (Transact-SQL)
使用搜索属性列表搜索文档属性Search Document Properties with Search Property Lists