维护计划持续时间显示在历史记

时间:2009-06-16 20:25:46

标签: sql-server sql-server-agent maintenance-plan

这是我们的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

为什么每个步骤的持续时间都很快,但整体维护需要5h? 我怎样才能找到花费这么长时间的任务......

1 个答案:

答案 0 :(得分:0)

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

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

它在做什么?