Groups | Blog | Home
all groups > sql server new users > january 2006 >

sql server new users : defragment a database?


Michael Hotek
1/27/2006 11:15:51 AM
Take a look at the following in BOL:

dbcc showcontig
dbcc dbreindex
dbcc indexdefrag

If this is 2005, then you just need the alter index statement.

--
Mike
http://www.solidqualitylearning.com
Disclaimer: This communication is an original work and represents my sole
views on the subject. It does not represent the views of any other person
or entity either by inference or direct reference.

[quoted text, click to view]

Daves
1/27/2006 2:32:27 PM
err... is there something like "defragmenting" a database like we do with
file system? My idea that after lots of ALTER TABLEs, ALTER COLUMNs,
updates, inserts and deletes some master table could be irregularily
scheduled because I notice the sql server is starting to work slower with
the database although the data amount is not growing (i'm on the
developement stage of a web site so no data only (changing) schemas)

Gail Erickson [MS]
1/27/2006 3:00:42 PM
Also, take a look at this white paper on defragmenting.
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/ss2kidbp.mspx

--
Gail Erickson [MS]
SQL Server Documentation Team
This posting is provided "AS IS" with no warranties, and confers no rights

[quoted text, click to view]

AddThis Social Bookmark Button