we've got some large _data_ tables that could be fragmented (indexes
are already being defragged using dbcc indexdefrag). so,
1. how can i confirm this?
2. if they are, what's the best way to unfragment them?
i've been looking through old threads and see a lot of references to
dbcc shrinkfile, but that command doesn't seem to address the data
contiguity issue. the other option i've seen is to bcp the data out and
back in, but that seems a bit cumbersome.
thanks,
arthur1)
DBCC SHOWCONTIG (For more details please refer to the BOL)
2)
DBCC INDEXDEFRAG
DBCC DBREINDEX
"arthur" <alangham@.gmail.com> wrote in message
news:1107784896.734177.96160@.l41g2000cwc.googlegroups.com...
> we've got some large _data_ tables that could be fragmented (indexes
> are already being defragged using dbcc indexdefrag). so,
> 1. how can i confirm this?
> 2. if they are, what's the best way to unfragment them?
> i've been looking through old threads and see a lot of references to
> dbcc shrinkfile, but that command doesn't seem to address the data
> contiguity issue. the other option i've seen is to bcp the data out and
> back in, but that seems a bit cumbersome.
> thanks,
> arthur
>|||No don't use shrinkfile as that will fragment them even more. You defrag
indexes with DBCC DBREINDEX or DBCC INDEXDEFRAG. The table itself should
have a clustered index on it so if you rebuild the clustered index you
rebuild the table itself. Have a look here:
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/ss2kidbp.mspx
--
Andrew J. Kelly SQL MVP
"arthur" <alangham@.gmail.com> wrote in message
news:1107784896.734177.96160@.l41g2000cwc.googlegroups.com...
> we've got some large _data_ tables that could be fragmented (indexes
> are already being defragged using dbcc indexdefrag). so,
> 1. how can i confirm this?
> 2. if they are, what's the best way to unfragment them?
> i've been looking through old threads and see a lot of references to
> dbcc shrinkfile, but that command doesn't seem to address the data
> contiguity issue. the other option i've seen is to bcp the data out and
> back in, but that seems a bit cumbersome.
> thanks,
> arthur
>|||use dbcc showcontig
check books on line for lots of examples and explanation of what the output
means.
fix via indexdefrag or dbReindex.
keep in mind that if a table does not have a clustered index, you will not
be able to defrag it.
cheers,
Greg Jackson
Portland, Oregon|||as always, thanks!
arthur
Showing posts with label indexes. Show all posts
Showing posts with label indexes. Show all posts
Thursday, March 29, 2012
data table fragmentation
Labels:
_data_,
database,
dbcc,
defragged,
fragmentation,
fragmented,
indexdefrag,
indexes,
microsoft,
mysql,
oracle,
server,
sql,
table,
tables
Sunday, March 11, 2012
Data on a given page
Givena database page (eg 1:25520), how can I see what data is on that page or
at least what table/indexes are using that page ?
Thanks in Advance,
Flora
you can use the command DBCC PAGE
http://support.microsoft.com/kb/q83065/
"Flora S" wrote:
> Givena database page (eg 1:25520), how can I see what data is on that page or
> at least what table/indexes are using that page ?
> Thanks in Advance,
> Flora
at least what table/indexes are using that page ?
Thanks in Advance,
Flora
you can use the command DBCC PAGE
http://support.microsoft.com/kb/q83065/
"Flora S" wrote:
> Givena database page (eg 1:25520), how can I see what data is on that page or
> at least what table/indexes are using that page ?
> Thanks in Advance,
> Flora
Data on a given page
Givena database page (eg 1:25520), how can I see what data is on that page o
r
at least what table/indexes are using that page ?
Thanks in Advance,
Florayou can use the command DBCC PAGE
http://support.microsoft.com/kb/q83065/
"Flora S" wrote:
> Givena database page (eg 1:25520), how can I see what data is on that page
or
> at least what table/indexes are using that page ?
> Thanks in Advance,
> Flora
r
at least what table/indexes are using that page ?
Thanks in Advance,
Florayou can use the command DBCC PAGE
http://support.microsoft.com/kb/q83065/
"Flora S" wrote:
> Givena database page (eg 1:25520), how can I see what data is on that page
or
> at least what table/indexes are using that page ?
> Thanks in Advance,
> Flora
Data on a given page
Givena database page (eg 1:25520), how can I see what data is on that page or
at least what table/indexes are using that page ?
Thanks in Advance,
Florayou can use the command DBCC PAGE
http://support.microsoft.com/kb/q83065/
"Flora S" wrote:
> Givena database page (eg 1:25520), how can I see what data is on that page or
> at least what table/indexes are using that page ?
> Thanks in Advance,
> Flora
at least what table/indexes are using that page ?
Thanks in Advance,
Florayou can use the command DBCC PAGE
http://support.microsoft.com/kb/q83065/
"Flora S" wrote:
> Givena database page (eg 1:25520), how can I see what data is on that page or
> at least what table/indexes are using that page ?
> Thanks in Advance,
> Flora
Subscribe to:
Posts (Atom)