rebuild_indexes.txt

Thursday Oct 11th 2001 by DatabaseJournal.com Staff
Share:



I find that, on a monthly basis, tables that are heavily updated become fragmented. This script will run through your database, determine what tables have indexes on them, what type of index it is, and what filegroup it was built on. After all this information has been collected, the procedure will generate the script to drop the index and then rebuild it. Make note of the size of your database before and after executing this stored procedure to see how much space you gain back

Author: Barb Dornbrook


Download Script:
rebuild_indexes.txt


Disclaimer: We hope that the information on these script pages is valuable to you. Your use of the information contained in these pages, however, is at your sole risk. All information on these pages is provided "as -is", without any warranty, whether express or implied, of its accuracy, completeness, or fitness for a particular purpose... Disclaimer Continued


Back to Database Journal Home

Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved