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

Who is online?  64 guests and 0 members
home  »  blogs  »  Vasudev Menon  »  SQL Server: Troubleshooting a SQL 2005 database that went into a suspect mode.
  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

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

  • A few days back I was resolving a memory issue which caused sql server to stop responding. I was able to figure out the issue by looking into DBCC MemoryStatus output. It was the full text search whic...
  • This is an update to the DB-Migrate ( http://www.sqlservergeeks.com/blogs/AhmadOsama/personal/797/db-migrate-a-powershell-module-to-migrate-databases ) powershell module to migrate database between sq...
  • This blog is part of the series The TSQL Classes: Stored Procedure The links to previous post are given below. http://sqlservergeeks.com/blogs/AhmadOsama/personal/762/the-tsql-classes-stored-procedure...
  • Reporting With SSRS Part 1 : In this serires of blogs, i will try to introduce you with some of the key features of the tool which will help you get on board to become a proficient report developer.If...
  • Hi Folks, I am sure that all of you would be aware about the role of Identity column in a table, i.e., it is column which keeps on incrementing without supplying the value explicitly during insertion....
  • Recently I wrote powershell scripts to move databases, logins and SQL Agent Jobs between instances. Another one I wrote was to fix orphan users. I have now combined all of these different functions in...
  • Hi SQL Geeks, Here are the blog posts by Ahmad Osama for the month of April. We would expect more of his informative blogs this month. Happy Learning! If you like our blogs do like us on Facebook at h...
  • This blog is part of the series The TSQL Classes: Stored Procedure The link to previous post are given below. http://sqlservergeeks.com/blogs/AhmadOsama/personal/762/the-tsql-classes-stored-procedures...
  • As DBAs we are always challenged of unexpected size growth of log or data files and need to shrink files based on available free space in each file. Most of the times we are stuck and do a lot of scri...
  • One of the major migration activities is to fix orphan users. Though, it can be easily fixed by sp_change_users_login procedure, however what if you need to do this for multiple servers. A powershell ...
  • This blog is part of the series The TSQL Classes: Stored Procedure. http://www.sqlservergeeks.com/blogs/AhmadOsama/personal/764/the-tsql-classes-stored-procedures-nested-proc-recursion-and-plan-cachin...