Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Example to Automate SQL Compare to "Restore" items from Subscriber that Differ from Publisher as portion of refreshing test from prod

$
0
0

Hello,

I opened an earlier thread asking about the best method to refresh a test/QC database with data from production.  The catch is that both are acting as publishers to other databases and I don't want to interfere with that.  Hilary Cotter and Stan210 gave me highly useful responses.  I want to go with the restore from backup/recreate replication/"reapply" the objects and privileges from test that differ from prod method that Hilary proposed but some of it is beyond my current skill set. I closed the thread as maybe I was extending the conversation too long or changing the initial topic.

How do I automate the Redgate SQL Compare portion?  I may be mistaken, but I have the impression that if you have the non Pro version of REdgate SQL Compare you can acquire the API and  use .NET to code this.  If you have the Pro version you can use a command line interface (not use .Net) to SQL Compare.  With either option, does anyone have an example or script that they would be willing to share? If not, if you have some pointers on how to get started, (links or suggested resources are fine too), I would appreciate it very much. Thanks.


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>