SQL Flow Field Guide

sys.sp_generate_database_ledger_digest

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

produces the current ledger digest

What changes

Input
ledger database block chain
Output or change
digest JSON result

Syntax at a glance

sys.sp_generate_database_ledger_digest

Work example

A ledger owner needs a digest to anchor database history outside the database.

Check the database, digest destination, external storage owner, access control, and retention record.

Check your work The digest is stored outside the database with a timestamp and an assigned verifier.

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