数据流分析
您可以使用 catalog.execution_data_statistics SSISDB 数据库视图分析包的数据流。 此视图在每当数据流组件将数据发送到下游组件时显示一行。 这些信息可用来进一步了解发送到每个组件的行。
注意 |
---|
日志记录级别必须设置为 Verbose(详细),才能通过 catalog.execution_data_statistics 视图捕获信息。 |
以下示例显示在包的组件之间发送的行数。
use SSISDB
select package_name, task_name, source_component_name, destination_component_name, rows_sent
from catalog.execution_data_statistics
where execution_id = 132
order by source_component_name, destination_component_name
以下示例计算每个组件针对特定的执行每毫秒所发送的行数。 计算的值为:
total_rows - 组件发送的所有行的总和
wall_clock_time_ms – 每个组件已使用的执行总时间(以毫秒为单位)
num_rows_per_millisecond – 每个组件每毫秒发送的行数
HAVING 子句用于防止在计算中出现被零除错误。
use SSISDB
select source_component_name, destination_component_name,
sum(rows_sent) as total_rows,
DATEDIFF(ms,min(created_time),max(created_time)) as wall_clock_time_ms,
((0.0+sum(rows_sent)) / (datediff(ms,min(created_time),max(created_time)))) as [num_rows_per_millisecond]
from [catalog].[execution_data_statistics]
where execution_id = 132
group by source_component_name, destination_component_name
having (datediff(ms,min(created_time),max(created_time))) > 0
order by source_component_name desc
相关任务
相关内容
|