SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


ATTACHED SUSPECT DATABASE in SQL2008 R2


ATTACHED SUSPECT DATABASE in SQL2008 R2

Author
Message
jolan.mahinay
jolan.mahinay
SSC Rookie
SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)

Group: General Forum Members
Points: 49 Visits: 94
hello to all

i would like to ask some assistance for attaching a suspect db a size of 400 gigz, here what happen in our prod DB. we try to run the sqlserver 2008 R2 and we found out that our DB is in suspect mode i dont know what cause then one of the IT personnel detached it while in a suspect mode then he tried to attached but it does not attach at all..is there a way to attach this database? please help we need it badly..

thanks
JeremyE
JeremyE
SSCarpal Tunnel
SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)

Group: General Forum Members
Points: 4255 Visits: 4057
You need to "hack" the database back into SQL server.

1. Create an empty database on the server to match the real database in size, name, files, etc.
2. Stop SQL Server services.
3. Copy the real database files (mdf,ndf,ldf) to the locations of the empty database you just created.
4. Start SQL Server and the real database should come up suspect.
5. Run ALTER DATABASE <yourdbname> SET EMERGENCY
6. Run DBCC CHECKDB to find out why the database is suspect

If this is a production database you should probably call Microsoft support.
ps.
ps.
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3231 Visits: 3668
A suspect database should never have been detached!! you can try doing what was suggested in previous post. do you have backups?



Pradeep Singh
Sachin Nandanwar
Sachin Nandanwar
Say Hey Kid
Say Hey Kid (683 reputation)Say Hey Kid (683 reputation)Say Hey Kid (683 reputation)Say Hey Kid (683 reputation)Say Hey Kid (683 reputation)Say Hey Kid (683 reputation)Say Hey Kid (683 reputation)Say Hey Kid (683 reputation)

Group: General Forum Members
Points: 683 Visits: 2633
Is the last full backup and log file available.If yes then you need to
1)Take a Tail log backup.
2)Create a new database and then restore the full backup.
3)Restore the Tail log backup.

--------------------------------------------------------------------------------------------------
I am just an another naive wannabe DBA trying to learn SQL Server
ps.
ps.
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3231 Visits: 3668
sachin-355820 (11/9/2010)
Is the last full backup and log file available.If yes then you need to
1)Take a Tail log backup.

Database has been detached so log file wont be available.
2)Create a new database and then restore the full backup.

No need to create a new database. Restore will be just fine.
3)Restore the Tail log backup.

All subsequent log backups taken after full backup need to be restored in sequence first before restoring tail log backup(if that is available, in this case it is not)



Pradeep Singh
prakashmuddu
prakashmuddu
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 30
i had detached suspected database in s2k8R2. i have full backups? problem is i'm not able to attach.
planning to restore the db.plz suggest. it's urgently needed.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search