Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari iniPelayar ini tidak lagi disokong.
Naik taraf kepada Microsoft Edge untuk memanfaatkan ciri, kemas kini keselamatan dan sokongan teknikal yang terkini.
Applies to:
SQL Server 2022 (16.x)
Azure SQL Database
Azure SQL Managed Instance
Verifies the database ledger and the table ledgers. For each row in the sys.database_ledger
view, the stored procedure:
table_name
argument, the stored procedure verifies a table hash for the specified table, if it exists in the table_hashes column of sys.database_ledger
. Otherwise, it verifies all table hashes existing in the table_hashes column of sys.database_ledger
, except table hashes for non-existing (dropped) tables. When verifying a table hash for a ledger table, the stored procedure:
sys.database_ledger
in the ledger table.sys.database_ledger
for the given ledger table.In addition, the stored procedure verifies all nonclustered indexes are consistent with the specified ledger table. If no ledger table is specified, it verifies all nonclustered indexes for each existing ledger table referenced in the table_hashes column in any row of sys.database_ledger
.
For more information on database ledger, see Ledger.
Transact-SQL syntax conventions
sp_verify_database_ledger
[ @digests = ] 'digests'
[ , [ @table_name = ] 'table_name' ]
A JSON document containing a list of transaction digests, each of which has been obtained by querying the sys.database_ledger_latest_digest
view. The JSON document must contain at least one digest.
The name of the table that you want to verify.
0
(success) or 1
(failure).
One row, with one column called last_verified_block_id
.
Requires the VIEW LEDGER CONTENT permission.
Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari ini