Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 3.27 KB

sp-enclave-send-keys-sql.md

File metadata and controls

73 lines (51 loc) · 3.27 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs monikerRange
sp_enclave_send_keys (Transact-SQL)
sp_enclave_send_keys (Transact-SQL)
jaszymas
jaszymas
vanto, randolphwest
06/13/2023
sql
system-objects
reference
sp_enclave_send_keys
sp_enclave_send_keys_TSQL
sys.sp_enclave_send_keys
sys.sp_enclave_send_keys_TSQL
sp_enclave_send_keys
TSQL
>= sql-server-ver15

sp_enclave_send_keys (Transact-SQL)

[!INCLUDE sqlserver2019-windows-only]

Sends columns encryption keys, defined in the database, to the server-side secure enclave used with Always Encrypted with secure enclaves.

sp_enclave_send_keys only sends only the keys that are enclave-enabled and encrypt columns that use randomized encryption and have indexes. For a regular user query, a client driver provides the enclave with the keys needed for computations in the query. sp_enclave_send_keys sends all column encryption keys defined in the database and used for indexes encrypted columns.

sp_enclave_send_keys provides an easy way to send keys to the enclave and populate the column encryption key cache for subsequent indexing operations. Use sp_enclave_send_keys to enable:

To successfully invoke sp_enclave_send_keys, you need to connect to the database with Always Encrypted and enclave computations enabled for the database connection. You also need to have access to column master keys, protecting the column encryption keys, you're going to send, and you need permissions to access Always Encrypted key metadata in the database.

Syntax

sp_enclave_send_keys
[ ; ]

Arguments

This stored procedure has no arguments.

Return value

This stored procedure has no return value.

Result set

This stored procedure has no result sets.

Permissions

Require the VIEW ANY COLUMN ENCRYPTION KEY DEFINITION and VIEW ANY COLUMN MASTER KEY DEFINITION permissions in the database.

Examples

EXEC sp_enclave_send_keys;

Related content