Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Replication (2008)
 Compare Replicated Tables

Author  Topic 

niks
Starting Member

9 Posts

Posted - 2012-06-12 : 07:54:53
How can i Compare Replicated Tables for Differences?

is there any script or tool?



Regds
Niks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-06-12 : 12:55:42
There are lots of scripts and tools that can do this. But you will need to stop replication temporarily to do it. Stop the log reader job and ensure the queues are empty. Then do the comparison. Depending upon how big your tables are, this could mean lots of "downtime" to the subscriber in that the data is stale.

Here's what such script: http://weblogs.sqlteam.com/jeffs/archive/2007/05/02/sql-server-2005-using-except-and-intersect-to-compare-tables.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

niks
Starting Member

9 Posts

Posted - 2012-06-15 : 03:39:34
Hey Tara ,

Thx, It helps me a lot.

Regds

Regds
Niks
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-06-15 : 03:43:27
You're welcome, glad to help.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -