Compartilhar via


AsymKey_ID (Transact-SQL)

Returns the ID of an asymmetric key.

Topic link iconTransact-SQL Syntax Conventions

Syntax

AsymKey_ID ( 'Asym_Key_Name' )

Arguments

  • Asym_Key_Name
    Is the name of an asymmetric key in the database.

Return Types

int

Permissions

Requires some permission on the asymmetric key and that the caller has not been denied VIEW permission on the asymmetric key.

Examples

The following example returns the ID of asymmetric key ABerglundKey11.

SELECT ASYMKEY_ID('ABerglundKey11');
GO

See Also

Reference

CREATE ASYMMETRIC KEY (Transact-SQL)
ALTER ASYMMETRIC KEY (Transact-SQL)
DROP ASYMMETRIC KEY (Transact-SQL)
SignByAsymKey (Transact-SQL)
VerifySignedByAsmKey (Transact-SQL)
sys.asymmetric_keys (Transact-SQL)
Security Catalog Views (Transact-SQL)

Other Resources

Encryption Hierarchy

Help and Information

Getting SQL Server 2005 Assistance