ASYMKEY_ID
cryptographic transform or key lookup
What changes
- Input
- plaintext or ciphertext and a key, certificate or passphrase
- Output or change
- ciphertext, plaintext, hash, signature check, or key metadata
- Return type
- int
Syntax at a glance
ASYMKEY_ID ( 'Asym_Key_Name' )
Work example
Resolve an asymmetric key name to its database identifier.
Use synthetic data in an isolated database. Follow the existing key hierarchy and keep keys and plaintext out of output.
Check your work Check for null and qualify the expected key in the current database.
Open Microsoft Learn for full syntax, permissions, and details for your version.