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)
 Suspect Mode

Author  Topic 

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 2007-03-19 : 13:39:26
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

12543 Posts

Posted - 2007-03-19 : 13:49:23
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 - 2007-03-19 : 13:54:47
Gurus
And by mistake i have dettached the DB?
Regards
Nitin
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2007-03-19 : 14:28:10
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 - 2007-03-19 : 14:49:45
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

100 Posts

Posted - 2007-03-20 : 10:36:02
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 - 2007-03-20 : 13:03:17
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

100 Posts

Posted - 2007-03-21 : 08:55:58
Yes, post error
Go to Top of Page
   

- Advertisement -