views:

153

answers:

3

We had some problems this morning and need to rollback our database for about one hour. Is this possible and how is it done?

It is a Microsoft SQL 2005 database.

BR Larre

A: 

Perhaps the article "Applying Transaction Log Backups" from MSDN might be of any assistance.

Zaagmans
A: 

Have done some investigating and it seems that since our database has RECOVERYMODEL set to SIMPLE it is not possible to do a rollback.

If the database was set up with full recovery model or bulk-logged recovery model it would have been easier.

Zooking
Hmmm too bad! :-/
Zaagmans
I suppose the "good news", if any, is that you'll know what to do if it happens again...
Mike Woodhouse
+3  A: 
  1. Find the previous full backup of your database (BF1).
  2. Take a backup of the log file (BL1).
  3. Take a full backup of the database (BF2). Good to have, in case the following steps go wrong.
  4. Restore the previous full backup (BF1), with NORECOVERY
  5. Restore the log file backup (BL1) with RECOVERY, and specifying the point in time you want to recover.
Nuno G
Is this possible when the recoverymodel is set to simple?
Zooking
No, I don't think you can.
Nuno G