Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log backups when database offline

Status
Not open for further replies.

jitter

Technical User
Sep 2, 2001
351
US
I have just been practicing some restore operations and was wondering about it when the database was taken offline and then something happened to the .mdf file and the database was not able to recover and remained offline.

I would like to get point in time recovery but get errors when I try to backup the current log file.

I am using the following to try to do it.

Code:
BACKUP LOG northwind
   TO File = 'C:\Test\northwind_current.trn'
   WITH NO_TRUNCATE

I receive the following error:

Server: Msg 942, Level 14, State 3, Line 1
Database 'Northwind' cannot be opened because it is offline.
Server: Msg 3013, Level 16, State 1, Line 1
BACKUP LOG is terminating abnormally.

I understand that the database is offline (I put it that way) but do not understand if there is no way to recover that current log file or if it just can't when the database is offline.

Thanks for any input.

jitter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top