Red Gate forums :: View topic - Code to compare backups in C#
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK Previous Versions
SQL Comparison SDK Previous Versions forum

Code to compare backups in C#

Search in SQL Comparison SDK Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
mturaga



Joined: 04 Dec 2009
Posts: 1

PostPosted: Fri Dec 04, 2009 7:17 pm    Post subject: Code to compare backups in C# Reply with quote

Is there any resources for comparing the backups.
I wanted to do a
Differences dbSourceVsdbTarget = dbSource.CompareWith(db, Options.Default);

where db is a backup , How do I instanciate the backup datasource in the db above?. db is a backup location as in widgetdev.bak
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Mon Dec 07, 2009 3:49 pm    Post subject: Reply with quote

Hello Maruthi,

If you are simply looking for an example of comparing the schema of a backup file to a live database, a sample is available here:
http://labs.red-gate.com/index.php/Compare_to_Backup

It shouldn't be too much of a leap to modify this to compare two backups if that's what you need to do. Lots of code examples are available on the labs website.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group