Funções de segurança (Transact-SQL)Security Functions (Transact-SQL)

APLICA-SE A: simSQL Server nãoBanco de Dados SQL do Azure nãoSQL Data Warehouse do Azure nãoParallel Data Warehouse APPLIES TO: yesSQL Server noAzure SQL Database noAzure SQL Data Warehouse noParallel Data Warehouse

As funções a seguir retornam informações que são úteis para o gerenciamento de segurança.The following functions return information that is useful in managing security. Funções adicionais são listadas em Funções criptográficas (Transact-SQL).Additional functions are listed under Cryptographic Functions (Transact-SQL).

CERTENCODED (Transact-SQL)CERTENCODED (Transact-SQL) PWDCOMPARE (Transact-SQL)PWDCOMPARE (Transact-SQL)
CERTPRIVATEKEY (Transact-SQL)CERTPRIVATEKEY (Transact-SQL) PWDENCRYPT (Transact-SQL)PWDENCRYPT (Transact-SQL)
CURRENT_USER (Transact-SQL)CURRENT_USER (Transact-SQL) SCHEMA_ID (Transact-SQL)SCHEMA_ID (Transact-SQL)
DATABASE_PRINCIPAL_ID (Transact-SQL)DATABASE_PRINCIPAL_ID (Transact-SQL) SCHEMA_NAME (Transact-SQL)SCHEMA_NAME (Transact-SQL)
sys.fn_builtin_permissions (Transact-SQL)sys.fn_builtin_permissions (Transact-SQL) SESSION_USER (Transact-SQL)SESSION_USER (Transact-SQL)
sys.fn_get_audit_file (Transact-SQL)sys.fn_get_audit_file (Transact-SQL) SUSER_ID (Transact-SQL)SUSER_ID (Transact-SQL)
sys.fn_my_permissions (Transact-SQL)sys.fn_my_permissions (Transact-SQL) SUSER_SID (Transact-SQL)SUSER_SID (Transact-SQL)
HAS_PERMS_BY_NAME (Transact-SQL)HAS_PERMS_BY_NAME (Transact-SQL) SUSER_SNAME (Transact-SQL)SUSER_SNAME (Transact-SQL)
IS_MEMBER (Transact-SQL)IS_MEMBER (Transact-SQL) SYSTEM_USER (Transact-SQL)SYSTEM_USER (Transact-SQL)
IS_ROLEMEMBER (Transact-SQL)IS_ROLEMEMBER (Transact-SQL) SUSER_NAME (Transact-SQL)SUSER_NAME (Transact-SQL)
IS_SRVROLEMEMBER (Transact-SQL)IS_SRVROLEMEMBER (Transact-SQL) USER_ID (Transact-SQL)USER_ID (Transact-SQL)
ORIGINAL_LOGIN (Transact-SQL)ORIGINAL_LOGIN (Transact-SQL) USER_NAME (Transact-SQL)USER_NAME (Transact-SQL)
PERMISSIONS (Transact-SQL)PERMISSIONS (Transact-SQL)

Para obter informações sobre a associação em grupos do Windows, consulte xp_logininfo (Transact-SQL) e xp_enumgroups (Transact-SQL).For information about membership in Windows groups, see xp_logininfo (Transact-SQL) and xp_enumgroups (Transact-SQL).

Consulte TambémSee Also

Procedimentos de segurança armazenados (Transact-SQL) Security Stored Procedures (Transact-SQL)
Funções criptográficas (Transact-SQL) Cryptographic Functions (Transact-SQL)
Funções internas (Transact-SQL) Built-in Functions (Transact-SQL)
Instruções de segurançaSecurity Statements