dcsimg

rebuild_indexes.txt

October 11, 2001



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








The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers