sys.sp_table_validation
Returns and compares rowcount and checksum information on a table or indexed view.
What changes
- Input
- Returns and compares rowcount and checksum information on a table or indexed view.
- Output or change
- No write is stated in the Microsoft summary.
Syntax at a glance
sys.sp_table_validation
[ @table = ] N'table'
[ , [ @expected_rowcount = ] expected_rowcount OUTPUT ]
[ , [ @expected_checksum = ] expected_checksum OUTPUT ]
[ , [ @rowcount_only = ] rowcount_only ]
[ , [ @owner = ] N'owner' ]
[ , [ @full_or_fast = ] full_or_fast ]
[ , [ @shutdown_agent = ] shutdown_agent ]
[ , [ @table_name = ] N'table_name' ]
[ , [ @column_list = ] N'column_list' ]
[ ; ]
Work example
Returns and compares rowcount and checksum information on a table or indexed view.
Write a proposed call on paper. Name the target, required permission, expected change, and recovery step before any lab use.
Check your work What can this procedure change or start, and what permission does it need?
Open Microsoft Learn for full syntax, permissions, and details for your version.