ASYMKEYPROPERTY
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
- sql_variant
Syntax at a glance
ASYMKEYPROPERTY (Key_ID , 'algorithm_desc' | 'string_sid' | 'sid')
Work example
Inspect one documented property of an existing asymmetric key.
Use synthetic data in an isolated database. Follow the existing key hierarchy and keep keys and plaintext out of output.
Check your work Check metadata visibility and keep returned key details out of public output.
Open Microsoft Learn for full syntax, permissions, and details for your version.