---
title: "sys.column_encryption_key_values (Transact-SQL) | Microsoft Docs"
ms.custom:
- "SQL2016_New_Updated"
ms.date: "06/10/2016"
ms.prod: "sql-non-specified"
ms.reviewer: ""
ms.suite: ""
ms.technology:
- "database-engine"
ms.tgt_pltfrm: ""
ms.topic: "language-reference"
applies_to:
- "Azure SQL Database"
- "SQL Server 2016 Preview"
f1_keywords:
- "column_encryption_key_values"
- "column_encryption_key_values_TSQL"
- "sys.column_encryption_key_values"
- "sys.column_encryption_key_values_TSQL"
dev_langs:
- "TSQL"
helpviewer_keywords:
- "sys.column_encryption_key_values catalog view"
ms.assetid: 440875ab-b0e9-4966-8c16-01503558fedd
caps.latest.revision: 12
author: "BYHAM"
ms.author: "rickbyh"
manager: "jhubbard"
---
# sys.column_encryption_key_values (Transact-SQL)
[!INCLUDE[tsql-appliesto-ss2008-asdb-xxxx-xxx_md](../../includes/tsql-appliesto-ss2008-asdb-xxxx-xxx-md.md)]
Returns information about encrypted values of column encryption keys (CEKs) created with either the [CREATE COLUMN ENCRYPTION KEY](../../t-sql/statements/create-column-encryption-key-transact-sql.md) or the [ALTER COLUMN ENCRYPTION KEY (Transact-SQL)](../../t-sql/statements/alter-column-encryption-key-transact-sql.md) statement. Each row represents a value of a CEK, encrypted with a column master key (CMK).
|Column name|Data type|Description|
|-----------------|---------------|-----------------|
|**column_encryption_key_id**|**int**|ID of the CEK in the database.|
|**column_master_key_id**|**int**|ID of the column master key that was used to encrypt the CEK value.|
|**encrypted_value**|**varbinary(8000)**|CEK value encrypted with the CMK specified in column_master_key_id.|
|**encryption_algorithm_name**|**sysname**|Name of an algorithm used to encrypt the CEK value.
Name of the encryption algorithm used to encrypt the value. The algorithm for the system providers must be **RSA_OAEP**.|
## Permissions
Requires the **VIEW ANY COLUMN ENCRYPTION KEY** permission.
[!INCLUDE[ssCatViewPerm](../../includes/sscatviewperm-md.md)] For more information, see [Metadata Visibility Configuration](../../relational-databases/security/metadata-visibility-configuration.md).
## See Also
[CREATE COLUMN ENCRYPTION KEY (Transact-SQL)](../../t-sql/statements/create-column-encryption-key-transact-sql.md)
[ALTER COLUMN ENCRYPTION KEY (Transact-SQL)](../../t-sql/statements/alter-column-encryption-key-transact-sql.md)
[DROP COLUMN ENCRYPTION KEY (Transact-SQL)](../../t-sql/statements/drop-column-encryption-key-transact-sql.md)
[CREATE COLUMN MASTER KEY (Transact-SQL)](../../t-sql/statements/create-column-master-key-transact-sql.md)
[Security Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/security-catalog-views-transact-sql.md)
[sys.column_encryption_keys (Transact-SQL)](../../relational-databases/system-catalog-views/sys-column-encryption-keys-transact-sql.md)
[sys.column_master_keys (Transact-SQL)](../../relational-databases/system-catalog-views/sys-column-master-keys-transact-sql.md)
[sys.columns (Transact-SQL)](../../relational-databases/system-catalog-views/sys-columns-transact-sql.md)
[Always Encrypted (Database Engine)](../../relational-databases/security/encryption/always-encrypted-database-engine.md)