SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Suspect Mode
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 03/19/2007 :  13:39:26  Show Profile  Reply with Quote
Gurus
My DB has gone in suspect mode..and i am nt able to attach it..how do i go about it?Please help as i dnt have the backups

Regards
Nitin

nr
SQLTeam MVY

United Kingdom
12543 Posts

Posted - 03/19/2007 :  13:49:23  Show Profile  Visit nr's Homepage  Reply with Quote
see
http://www.nigelrivett.net/SQLAdmin/RecoverCorruptDatabase.htmlhttp://www.nigelrivett.net/SQLAdmin/RecoverCorruptDatabase.html

>> i dnt have the backups
ummm. No comment.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 03/19/2007 :  13:54:47  Show Profile  Reply with Quote
Gurus
And by mistake i have dettached the DB?
Regards
Nitin
Go to Top of Page

nr
SQLTeam MVY

United Kingdom
12543 Posts

Posted - 03/19/2007 :  14:28:10  Show Profile  Visit nr's Homepage  Reply with Quote
Try to attach.
If that doesn't work create a new database, stop the server, replace the .mdf with your corrupt one then start the server.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 03/19/2007 :  14:49:45  Show Profile  Reply with Quote
Can you Please guide me dis the steps..i have made the new DB and sql server is stopped now...Where do i put my original MDf now of the suspect db?

Regards
Nitin
Go to Top of Page

john.burns
Posting Yak Master

USA
100 Posts

Posted - 03/20/2007 :  10:36:02  Show Profile  Reply with Quote
I would detach new db .. ensure orig. mdf is in same location and attach db pointing to orig mdf file
Go to Top of Page

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 03/20/2007 :  13:03:17  Show Profile  Reply with Quote
Gurus
I would like to tell you the steps which i am following.

1)Create a NEW DB
2)dettach the new DB
3)Attach the db
4)give the location of the MDF file(MDF file of the suspect DB)
5)Location of LDF shud be the location of new DB
6)Attach it

But i am getting the error?Is this the right way?

Regards
Nitin
Go to Top of Page

john.burns
Posting Yak Master

USA
100 Posts

Posted - 03/21/2007 :  08:55:58  Show Profile  Reply with Quote
Yes, post error
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000