1

这是我们的 sql 2005 维护计划历史的导出

Date,Source,Severity,Plan Name,SubPlan Name,Task Name,Duration
06/07/2009 05:08:29,,Unknown,Weekly optimisation,Subplan_1,,05:08:25
06/07/2009 05:07:41,,Unknown,,,Shrink Database Task (localhost),00:00:48
06/07/2009 04:50:40,,Unknown,,,Rebuild Index Task (localhost),00:16:41
06/07/2009 00:00:37,,Unknown,,,Purge DataStoreException (localhost),00:01:08
06/07/2009 00:00:37,,Unknown,,,Truncate HelpDeskMonitoring (localhost),00:00:07
06/07/2009 00:00:37,,Unknown,,,Execute SQL Server Agent Job Task (localhost),00:00:00
06/07/2009 00:00:05,,Unknown,,,Back Up Database Task (localhost),00:00:32

为什么每个步骤的持续时间很快,但整体维护却花了 5 小时?我怎样才能找到哪个任务花费了这么多时间...

4

1 回答 1

0

查看开始时间,您将看到 Purge DataStoreException Started at :37 并且下一步开始于 5:07。

这不是标准的 SQL 维护任务,而是您插入的自定义内容,对吗?

它在做什么?

于 2009-06-17T00:20:55.437 回答