Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

sys.openkeys (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

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

Applies to: SQL Server (SQL Server 2008 through current version), SQL Database V12 (Preview in some regions).

Column name

Data type

Description

database_id

int

ID of the database that contains the key.

database_name

sysname

Name of the database that contains the key.

key_id

int

ID of the key. The ID is unique within the database.

key_name

sysname

Name of the key. Unique within the database.

key_guid

varbinary

GUID of the key. Unique within the database.

opened_date

datetime

Date and time when the key was opened.

status

int

1 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.

Community Additions

ADD
Show:
© 2015 Microsoft