Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Jignesh Patel,
It finds the Indexes on database which needs to be Defragmented and Rebuilds those indexes.
Only you need to replace 'database_name' with your database.
Include this Stored Procedure in to your Scheduled JOB, schedule it whenever you want.
Enjoy The Code...!