适用范围:SQL Server
指定优化会话的最大时间长度(分钟)。
语法
<DTAInput>
...code removed...
<TuningOptions>
<TuningTimeInMin>...</TuningTimeInMin>
元素特征
| 特征 | 说明 |
|---|---|
| 数据类型和长度 | unsignedInt,长度没有限制。 |
| 默认值 | 480 分钟(8 小时)。 |
| 出现次数 | 除非已为 NumberOfEvents 元素指定了一个值,否则为必需项。 |
元素关系
| 关系 | 元素 |
|---|---|
| 父元素 | TuningOptions 元素 (DTA) |
| 子元素 | 无 |
示例
说明
以下代码示例显示如何将 12 个小时设置为最长优化时间:
代码
<DTAInput>
<Server>...</Server>
<Workload>...</Workload>
<TuningOptions>
<TuningTimeInMin>720</TuningTimeInMin>
...code removed here...
</DTAInput>