sys.openkeys (Transact-SQL)

 

Updated: June 10, 2016

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)yesAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

This catalog view returns information about encryption keys that are open in the current session.

Column nameData typeDescription
database_idintID of the database that contains the key.
database_namesysnameName of the database that contains the key.
key_idintID of the key. The ID is unique within the database.
key_namesysnameName of the key. Unique within the database.
key_guidvarbinaryGUID of the key. Unique within the database.
opened_datedatetimeDate and time when the key was opened.
statusint1 if the key is valid in metadata. 0 if the key is not found in metadata.

The visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. For more information, see Metadata Visibility Configuration.

Encryption Hierarchy
OPEN SYMMETRIC KEY (Transact-SQL)

Community Additions

ADD
Show: