SQL Flow Field Guide

RESTORE SYMMETRIC KEY

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

writes backup content back

What changes

Input
backup device, file or URL
Output or change
symmetric key key material

Syntax at a glance

RESTORE SYMMETRIC KEY key_name FROM { FILE = 'path_to_file' | URL = 'Azure Blob storage URL' } DECRYPTION BY PASSWORD = 'password' ENCRYPTION BY PASSWORD = 'password'

Work example

A database must recover a symmetric key from its protected backup.

Check the key backup, protector, password owner, encrypted values, and target database in a lab.

Check your work The recovered key decrypts a synthetic value and remains unavailable to other principals.

Open Microsoft Learn for full syntax, permissions, and details for your version.