Code to compare backups in C#
mturaga
Posts: 2
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
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
Comments
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.