Re: SQL2005 Rebuild Index Not Working
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Sun, 11 Jun 2006 08:49:49 +0000 (UTC)
(wackyphill@xxxxxxxxx) writes:
I understand your point Erland, but these Primary keys were created w/o
specifying that they should be non-clustered, so I'm certain they are.
You can always use sp_helpindex to find out.
Why is it that w/o a clustered index defragmentation on non-clustered
indexes can't occur, or did I misunderstand the previous poster?
I don't recall exactly what he said, but you can't defragment the data
pages without a clustering index. The NC indexes are defragmentable
nevertheless.
You are correct that these tables currently are small by most people's
standards. I'm guessing that the largest one has < 1000 records. Is it
mentioned somewhere in SQL books on-line about free space looking lile
fragmentaion, that I can read up on?
Let me put it this way: with tables of that size, there's usually not
much reason to worry about fragementation anyway.
Fragmentation matters when it results in data being spread out on
many extra pages. Say that you have a table with 1 GB of data. If
the data pages are only 50% full, the server needs to read 2 GB of
disk to scan all data. This can affect the performance of the system.
Whether this is spelt out in clear in Books Online, I don't know. But
you can read about the physical architecture starting on
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/33572c3b-343d-45aa-bb42-1d31423ae5cc.htm.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: SQL2005 Rebuild Index Not Working
- From: wackyphill
- Re: SQL2005 Rebuild Index Not Working
- References:
- SQL2005 Rebuild Index Not Working
- From: wackyphill
- Re: SQL2005 Rebuild Index Not Working
- From: smithabreddy
- Re: SQL2005 Rebuild Index Not Working
- From: wackyphill
- Re: SQL2005 Rebuild Index Not Working
- From: smithabreddy
- Re: SQL2005 Rebuild Index Not Working
- From: wackyphill
- Re: SQL2005 Rebuild Index Not Working
- From: Jackie Brophy
- Re: SQL2005 Rebuild Index Not Working
- From: wackyphill
- Re: SQL2005 Rebuild Index Not Working
- From: Erland Sommarskog
- Re: SQL2005 Rebuild Index Not Working
- From: wackyphill
- SQL2005 Rebuild Index Not Working
- Prev by Date: Re: SQL2005 Rebuild Index Not Working
- Next by Date: use result set returned by sp as derived table
- Previous by thread: Re: SQL2005 Rebuild Index Not Working
- Next by thread: Re: SQL2005 Rebuild Index Not Working
- Index(es):
Relevant Pages
|