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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help restoring database

Status
Not open for further replies.

bladesk8er

Technical User
Oct 18, 2002
8
GB
Hi,
problem is: transaction log files deleted.
: Database data files intact
thus database is 'suspect'
ANyone know how to recover from this situation - we dont care what was in the transaction log, just want the database back.

tia.
 
In Books On Line (BOL), look up suspect database. There is some SQL you can use to remove the suspect flag and see if that will get you your database back. You might try to sp_detach_db and then sp_attach_single_file_db to see if that can recover your database. Of course, make sure you have a recent backup before trying any of this.

Hope this helps.
 
Thanks,
my problem was that all recent backups had been damaged by faulty tape drive, and subsequent restores had trashed the transaction log files. Taking the database offline, then renaming the data files allowed deletion of the database while not losing the original data files, followed by re-creation with sp_attach_single_file_db. Phew. Doing a few dozen backups right now !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top