Description
Use the Maintenance Plan Wizard (使用維護計畫精靈) 1.使用SSMS連線到SQL Server,在SQL Server Instance>管理>維護計畫,按下右鍵,選擇[維護計畫精靈] 2.設定排程,建議在離峰時間執行,例如01:00,最少可以每周執行一次。 3.選擇需要定期執行的工作 如果您選擇了[重建索引],就不需要勾選[更新統計資料],因為REBUILD(重建索引)會一併更新統計資料 4.針對上一個步驟所選擇的項目,勾選您的資料庫 以下是[重建索引工作] 以下是[更新統計資料工作] Reference: Use the Maintenance Plan Wizard (使用維護計畫精靈) https://docs.microsoft.com/en-us/sql/relational-databases/maintenance-plans/use-the-maintenance-plan-wizard?view=sql-server-2017