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.
Author |
Topic |
pramod21
Yak Posting Veteran
64 Posts |
Posted - 2011-03-09 : 04:47:44
|
hi,I have a database using the Full Recovery model. Log backups are taken every 15 minutes from 9:00am. At 9:20am someone executes a TRUNCATE TABLE statement. Is it now possible to restore to a given point in time? |
|
Lumbago
Norsk Yak Master
3271 Posts |
Posted - 2011-03-09 : 04:51:40
|
Yes, do a tail log backup (a normal translog backup) after the truncate table statement. Then restore your your backups specifying STOPAT and RECOVERY in the restore of the tail log. here's a script to create the restore commands automatically:http://thefirstsql.com/2010/08/06/create-a-full-point-in-time-restore-script-automatically/- LumbagoMy blog-> http://thefirstsql.com/2011/02/07/regular-expressions-advanced-string-matching-and-new-split-function-sql-server-2008-r2/ |
 |
|
|
|
|