This is a discussion on Compare and Restore Tables within the SQL Server forums, part of the Microsoft SQL Server category; --> I have a database with 44 user tables that had some data deleted. I have a 2 month old ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I have a database with 44 user tables that had some data deleted. I have a 2 month old backup of the .mdf and .ldf files I can reatach to the Server (not the proper sql backup wizard method). Is there a way I can compare the data that is in the old database to the new and pull in the records from the old that don't exist in new database? Thanks, Steve *** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it! |
| ||||
| Hi Using the INFORMATION_SCHEMA views you can write a script that uses the PKs for each table to insert into the new table that does not already exist in the table already. John "Steve Bishop" <steveb@viper.com> wrote in message news:40eefab0$0$16477$c397aba@news.newsgroups.ws.. . > > I have a database with 44 user tables that had some data deleted. I have > a 2 month old backup of the .mdf and .ldf files I can reatach to the > Server (not the proper sql backup wizard method). > > Is there a way I can compare the data that is in the old database to the > new and pull in the records from the old that don't exist in new > database? > > Thanks, > Steve > > > *** Sent via Devdex http://www.devdex.com *** > Don't just participate in USENET...get rewarded for it! |