SQL SERVER – Non-Clustered Index and Automatic Rebuild – Quiz – Puzzle – 11 of 31

Click here to get free chapters (PDF) in the mailbox

Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the Author’s Perspective.

Beyond Relational has come up with a very interesting concept – they have converted a few of the questions from my book into the SQL Quiz. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, Vinod Kumar (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.

SQL Quiz

SQL SERVER - Non-Clustered Index and Automatic Rebuild - Quiz - Puzzle - 11 of 31 11

A performance tuning expert often encounter situation where it is difficult to figure out why certain activities are happening behind the scene in SQL Server Engine. Understanding that every action has some root cause is the key to be successful performance tuning expert. Here is one question which often puzzles man: When are the non-Clustered Indexes automatically rebuilt?

Link to participate in SQL Quiz

Notes of Vinod Kumar

Though the concepts of automatic rebuilding are central to the SQL Server Engine, the differences of Rebuilding and reorganizing is also worth knowing. This Hint has an explanation to the reasons when to use what. Knowing these will help a long way if you are a budding DBA.

Notes of Pinal Dave

I believe that there exists more misconception related to Indexes than any other topic in SQL Server. Reorganizing and Rebuilding are very important concepts. Additionally, the fill factor matters the most. This puzzle is so interesting that it is best-proved if T-SQL code is written to verify this puzzle. If the code is interesting, I promise to post it on this blog with due credits to you.

Additional Notes

SQL Server Interview Questions and Answers ISBN: 1466405643 Page#67
Difference Between Index Rebuild and Index Reorganize Explained with T-SQL Script
Fragmentation – Detect Fragmentation and Eliminate Fragmentation
Generate Report for Index Physical Statistics – SSMS
Comparison Index Fragmentation, Index De-Fragmentation, Index Rebuild – SQL SERVER 2000 and SQL SERVER 2005

Prize

There are exciting prizes awaiting the winners. Click here for Prizes and Frequently Asked Questions.

Link to participate in SQL Quiz

Note: The SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.

Reference: Pinal Dave (https://blog.sqlauthority.com)

Previous Post
SQL SERVER – A Quick Look at expressor Data Quality Solutions
Next Post
SQL SERVER – DACPAC and SQL Azure – Quiz – Puzzle – 12 of 31

Related Posts

No results found.

4 Comments. Leave new

  • Hi Pinal,
    I have one more doubt.
    When i rebuild or reorganize Clustered index,the averge fragmentation value is reduced as 0.But While rebuild or reogranize non clustered index ,the averge fragmentation values not redudec as less than 10 or 0.it having same value only.Kindly give advice for rebuild or reorganziese index for non clustered index

    Regards
    T.Suresh

    Reply
  • what is the difference between clustered index ans non- clustered index

    Reply

Leave a Reply