Returns the ID of an asymmetric key.
Transact-SQL Syntax Conventions
ASYMKEY_ID ( 'Asym_Key_Name' )
Is the name of an asymmetric key in the database.
int
Requires some permission on the asymmetric key and that the caller has not been denied VIEW permission on the asymmetric key.
The following example returns the ID of asymmetric key ABerglundKey11.
ABerglundKey11
SELECT ASYMKEY_ID('ABerglundKey11'); GO