SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


validating publisher data against subscriber data


validating publisher data against subscriber data

Author
Message
winston Smith
winston Smith
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1801 Visits: 2069
im running a test to see how to validate data on the publisher article vs the subscriber.

Im running the below code:


begin tran
exec sp_marksubscriptionvalidation @publication = 'Customers',@subscriber = 'MYPC\instance2',@destination_DB = 'Subscriber_db'


exec sp_article_validation @publication = 'Customers',@article = 'Customer',@rowcount_only = 0


exec sp_article_validation @publication = 'Customers', @article = 'Customer',
@rowcount_only = 0, @full_or_fast = 0, @shutdown_agent = 0,
@subscription_level = 1

commit



I assumed the 1st proc call sets up validation on the subscriber. the 2nd call validates the data on the publisher and the 3rd returns the validation data(rowcount and a checksum).

I updated data on the subscriber to ensure the rowcounts would differ from the publisher but when i run teh above code i get the same results for both calls of sp_article_validation:



Generated expected rowcount value of 13 and expected checksum value of -10885695621 for Customer.
Generated expected rowcount value of 13 and expected checksum value of -10885695621 for Customer.

Can anyone tell me why the 2nd call is not returning different values, as the subscriber data is different? Do i have an incorrect understanding on how to validate publisher data vs subscriber data?

EDIT: Pardon my ignorance. thought the results would show up in the query analyzer window, but just found out they show up in the replication monitor. issue is resolved!
s007reddy
s007reddy
SSC Rookie
SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)

Group: General Forum Members
Points: 33 Visits: 212
The article name "Customer" is same in both statements.

Example:

exec sp_article_validation @publication = 'Pub_keys', @article = 'KeyToken', @rowcount_only = 0, @full_or_fast = 0, @shutdown_agent = 0, @subscription_level = 1
exec sp_article_validation @publication = 'Pub_keys', @article = 'SymmetricKey', @rowcount_only = 0, @full_or_fast = 0, @shutdown_agent = 0, @subscription_level = 1
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search