Initiates a data validation request for the specified article.
sp_article_validation [@publication =] 'publication' [,[@article =] 'article']
[,[@rowcount_only =] rowcount_only]
[,[@full_or_fast =] full_or_fast]
[,[@shutdown_agent =] shutdown_agent]
Value | Description |
---|---|
0 | Does full count using COUNT(*). |
1 | Does fast count from sysindexes.rows. Counting rows in sysindexes is much faster than counting rows in the actual table. However, because sysindexes is lazily updated, the rowcount may not be accurate. |
2 (default) | Does conditional fast counting by first trying the fast method. If fast method shows differences, reverts to full method. If expected_rowcount is NULL and the stored procedure is being used to get the value, a full COUNT(*) is always used. |
0 (success) or 1 (failure)
sp_article_validation is used in snapshot and transactional replication.
sp_article_validation causes validation information to be gathered on the specified article and posts a validation request to the transaction log. When the Distribution Agent receives this request, the Distribution Agent compares the validation information in the request to the Subscriber table. The results of the validation are displayed in the Replication Monitor and SQL Server Agent alerts.
Only members of the sysadmin fixed server role or db_owner fixed database role can execute sp_article_validation.
sp_publication_validation | System Stored Procedures |
sp_table_validation |