• Check out this site for a set of excellent procedures: http://ola.hallengren.com/.

    You can use the Windows Task Scheduler to run these using SQLCMD.