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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 LDF missing

Author  Topic 

debug2k
Starting Member

18 Posts

Posted - 2004-04-26 : 04:54:28
Hi ,

One of my database is showing suspect as the ldf is missing. Is there any way i can restore the database with MDF only.

Regards,

samsekar
Constraint Violating Yak Guru

437 Posts

Posted - 2004-04-26 : 05:42:09
Read BOL on Topic 'sp_resetstatus'

- Sekar
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-04-26 : 08:13:33
Are you wanting to restore the database from a backup, or just get what you have working???

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-04-26 : 12:39:10
sp_resetstatus will only work if the database is still intact. Which it isn't, since the LDF is missing. You can try attaching the database with sp_attach_single_file_db, but I'm not sure that it will work since you didn't first detach it.

Do you have a recent full backup? Please say you do!

Tara
Go to Top of Page

debug2k
Starting Member

18 Posts

Posted - 2004-04-26 : 13:42:01
NO Tara... I dont have it..... the backup is not there...

Is there any way that we can trick SQL Server.. by somehow creating a dummy LDF...

Regards,
Deepak U
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-04-26 : 13:42:53
Yes with sp_attach_single_file_db. Have you tried that yet?

Tara
Go to Top of Page
   

- Advertisement -