views:

329

answers:

3

I have full weekly backups, daily differential backups and hourly transaction log backups.

To restore the database, I restore the full backup, then the last dif backup then all the transaction log backups specifying NORECOVERY on all the restores except the last one.

My question is. If I accidently restore my last transaction log with the NORECOVERY flag set, is there a command I can run to "RECOVER" the database at this point?

I'm using SQL Server 2005.

A: 

just see on this blog may be your problem will solve or ask pinal sir he may be give you answer http://blog.sqlauthority.com/

KuldipMCA
+3  A: 

Ok, so the answer is fairly simple. You can simply run the command.

RESTORE DATABASE [MyDatabase] WITH RECOVERY

It didn't even occur to me that you can run the RESTORE DATABASE command without specifying a backup to restore from.

Robin Day
+2  A: 

Try this (from SQL2000 help): RESTORE DATABASE dbname WITH RECOVERY

lg
I see now that you have found the solution. I posted the answer without refresh the question. Sorry.
lg