Skip to content

This runbook indexes all of the tables in a given database if the fragmentation is above a certain percentage. It highlights how to break up calls into smaller chunks, in this case each table in a database, and use checkpoints.Please read the runbook for additional information.

License

Notifications You must be signed in to change notification settings

krmanupa/indexes-tables-in-an-azure-database-if-they-have-a-high-fragmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Indexes tables in an Azure database if they have a high fragmentation

This runbook indexes all of the tables in a given database if the fragmentation is above a certain percentage. It highlights how to break up calls into smaller chunks, in this case each table in a database, and use checkpoints.

This allows the runbook job to resume for the next chunk of work even if the fairshare feature of Azure Automation puts the job back into the queue every 30 minutes.

You could schedule this runbook to run every night to ensure that your database indexes remain optimized.

 

 

Note: TechNet gallery is retiring! This script was migrated from TechNet script center to GitHub by Microsoft Azure Automation product group.

About

This runbook indexes all of the tables in a given database if the fragmentation is above a certain percentage. It highlights how to break up calls into smaller chunks, in this case each table in a database, and use checkpoints.Please read the runbook for additional information.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published