如何在SQL Server 2005中以计划的方式在数据库中重建索引? [英] How to do rebuilding of indexes in a DB in a scheduled manner in Sql server 2005?

查看:116
本文介绍了如何在SQL Server 2005中以计划的方式在数据库中重建索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Sql Server 2005中以计划的方式在数据库中重建索引?
那里有任何内置选项,或者是否需要相同的SP.我想每周都这样做.
我们正在将asp.net与c#一起使用.

How to do rebuilding of indexes in a DB in a scheduled manner in Sql server 2005?
Any Inbuilt option there or whether an SP needed for the same. I want to do the same every week.
We are using asp.net with c#.

推荐答案

您需要创建一个过程来进行重建,并创建一个Job来执行该过程,将其作为其中之一.脚步.您可能希望在此过程中包括许多其他维护操作.
You need to create a procedure to do the rebuilding and a Job to execute the procedure as one of it''s steps. There are a number of other maintenance operations you may want to include in the procedure.


这篇关于如何在SQL Server 2005中以计划的方式在数据库中重建索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆