SQL Server: Troubleshooting a SQL 2005 database that went into a suspect mode.

Who is online?  28 guests and 0 members
home  »  blogs  »  Vasudev Menon  »  SQL Server: Troubleshooting a SQL 2005 database that went into a suspect mode.

Training on Microsoft Products & Technologies

  Rate This Blog Entry:  register  or  login

Author

Vasudev.Menon Vasudev Menon (Member since: 4/26/2011 5:00:57 AM)

View Vasudev Menon 's profile

Comments (8)

Sachin.Nandanwar
6/12/2011 11:45:51 AM Sachin Nandanwar said:

Execute DBCC CHECKDB (xSxxxxxD, REPAIR_ALLOW_DATA_LOSS). This would take this own sweet time.

Are you sure  that the above is advisable because all the rows in a corrupt page will simply be deleted which can lead to data loss.


by
Vasudev.Menon
6/12/2011 2:19:21 PM Vasudev Menon said:

Sachin,

I have said 2 important things in the blog

1. "best option out is a restore"

2. The moral of the story  "Always ensure a full backup is in place before starting migration".

When a DBA faces an issue and troubleshoots, there are many options available and specially when he writes a blog to the wider community he needs to put across all options available, so that when others face a similar issue they are aware of the best and the worst options.  

Now lets say:

a. What if the poor chap had no backup? He just sits back and pray?

b. Should he not attempt to bring the DB online with the next available options on hand? mark my words, I have said next available option.

Now to your question of data loss:

Purely in the context of "this blog" and "the error I was troubleshooting", I had clearly mentioned it is the non-clustered index that had gone kaput.

You seriously think carring out DBCC checktable or checkdb with DATA_LOSS for a non-clustered index, will result in a data loss... from the table object itself? Smile

Thanks,

VM

by
Sachin.Nandanwar
6/12/2011 2:31:45 PM Sachin Nandanwar said:

Oh sorry I had missed that you had mentioned that error message indicated an issue with the index ,thats why all the confusion.

by
Vasudev.Menon
6/12/2011 2:42:52 PM Vasudev Menon said:

No problem Sachin, please do feel free to always question. That is the only way, by questioning, can a healthy discussion on the pros and cons of a topic be initiated and knowledge shared among the wider community.

 

by
AmitBansal
6/12/2011 2:56:25 PM Amit Bansal said:

Nice Post Vasu

by
mkumar_dba
6/13/2011 5:59:22 AM Manoj Kumar said:

Mr. @@AmitBansal

Sir, Is work with and use of DBCC CHECKDB (xSxxxxxD, REPAIR_ALLOW_DATA_LOSS) command data will loss or not...and if yes the how much chances to LOSS data and is there any other Step or process for Repaitr Suspect Database in SQL SERVER 2005\2008

 

Thanks,

Manoj Kumar

by
piyush.bajaj.2007
6/13/2011 6:48:19 AM Piyush Bajaj said:

This post really helped me, thanks Vasu.

Hey Sachin, it seems that you are very much prompt on every blogs and all, well carry on the nice work and at the same time do read the blogs Carefully.. ;)

by
Sachin.Nandanwar
6/13/2011 8:49:16 AM Sachin Nandanwar said:

Piyush,

Well that is what a job of a moderator is I guess..Wink

by

Leave a comment

Name:
  *  
Email:  (your email is kept secure)
 *  
Website:

example: "http://www.SQLServerGeeks.com"

 
Type the characters:
 *
 
   

Training on Microsoft Products & Technologies

Training on Microsoft Products & Technologies

Email Subscriptions

   Get the Most Recent Blogs in your inbox
Blogs RSS Feed

Vasudev Menon's latest blog posts

Blogs RSS Feed

Latest community blog posts

  • Dear SQL Geek, SQLServerGeeks.com cordially invites you to SQL Server Day, the monthly dose of SQL Server knowledge & learning. And after successful events in Bangalore, Kolkata & Mumbai, we a...
  • Hi SQL Geeks, The Microsoft® SQL Server® 2012 Feature Pack is a collection of stand-alone packages which provide additional value for Microsoft® SQL Server® 2012. You can download the ...
  • Hi Friends, Here is an interesting function: QUOTENAME() which returns a Unicode string with the delimiters added to make the input string a valid SQL Server delimited identifier. (from Books Online) ...
  • Hi All, It is a great news to all those who use SQL Server Express editions. Microsoft has increased the database size limit of SQL Server 2008 R2 Express edition from 4GB to 10GB. Previous versions o...
  • Hello Friends, It’s been a while that I have posted any blog. So here it is- Well with the arrival of SQL Server 2000, Microsoft has introduced the concept of User Defined Function (UDF). So the...
  • Exciting news! SQL Server 2012 has released to manufacturing. Customers and partners can download an evaluation of the product today and can expect general availability to begin on April 1. Microsoft ...