$ 0 0 I suggest using the SQL Management Studio to create a Database Maintenance Plan. Use the Maintenance Plan Wizard .