在 SSIS 中哪里可以找到 SSIS 执行 id 的状态详细信息

Sha*_*dar 5 sql-server ssis ssis-2012

我创建了一个 SSIS 包并将其部署在服务器上。

执行包时我可以看到执行报告。

我想知道SSIS执行id的信息存储在哪个表中?

就像如果执行 id= 2 则表示 packge 正在运行,当 4 表示失败时,当 7 表示成功时。

我想知道所有状态 ID 的详细信息。我认为 ssis 数据库中会有一个表,其中将根据状态 ID 保存信息。有人可以帮助我吗>

小智 9

状态保存在视图 [SSISDB].[catalog].[executions] 中,下面的表是 [SSISDB].[internal].[operations] 。

状态的详细信息可以在此处找到: https: //learn.microsoft.com/en-us/sql/integration-services/system-views/catalog-executions-ssisdb-database

status int
操作的状态。可能的值为已创建 (1)、正在运行 (2)、已取消 (3)、失败 (4)、待处理 (5)、意外结束 (6)、成功 (7)、停止 (8) 和已完成 (9) 。

如果您需要 Status 的维度表,我认为您必须自己创建一个,从官方文档中应该很容易。

这是官方文档的完整列表:

https://learn.microsoft.com/en-us/sql/integration-services/system-views/views-integration-services-catalog

本节介绍可用于管理已部署到 SQL Server 实例的 Integration ServicesIntegration Services 项目的 Transact-SQL 视图。

查询 Integration Services 视图以检查存储在 SSISDB 目录中的对象、设置和操​​作数据。

目录的默认名称是 SSISDB。目录中存储的对象包括项目、包、参数、环境和操作历史记录。

您可以直接使用数据库视图和存储过程,或者编写调用托管 API 的自定义代码。Management Studio 和托管 API 查询视图并调用本节中描述的存储过程来执行许多任务。

在这个部分

Catalog.catalog_properties(SSISDB 数据库)

显示集成服务目录的属性。

Catalog. effective_object_permissions(SSISDB 数据库) 显示当前主体对 Integration ServicesIntegration Services 目录中所有对象的有效权限。

Catalog.environment_variables(SSISDB 数据库) 显示 Integration ServicesIntegration Services 目录中所有环境的环境变量详细信息。

Catalog.environments(SSISDB 数据库) 显示 Integration ServicesIntegration Services 目录中所有环境的环境详细信息。环境包含可由 Integration ServicesIntegration Services 项目引用的变量。

Catalog.execution_parameter_values(SSISDB 数据库) 显示 Integration ServicesIntegration Services 包在执行实例期间使用的实际参数值。

Catalog.executions(SSISDB 数据库) 显示 Integration ServicesIntegration Services 目录中包执行的实例。使用“执行包”任务执行的包与父包在同一执行实例中运行。

Catalog.explicit_object_permissions(SSISDB 数据库) 仅显示已显式分配给用户的权限。

Catalog.extended_operation_info(SSISDB 数据库) 显示 Integration ServicesIntegration Services 目录中所有操作的扩展信息。

Catalog.folders(SSISDB 数据库) 显示 Integration ServicesIntegration Services 目录中的文件夹。

Catalog.object_parameters(SSISDB 数据库) 显示 Integration ServicesIntegration Services 目录中所有包和项目的参数。

Catalog.object_versions(SSISDB 数据库) 显示 Integration ServicesIntegration Services 目录中对象的版本。在此版本中,此视图仅支持项目版本。

Catalog.operation_messages(SSISDB 数据库) 显示在 Integration ServicesIntegration Services 目录中的操作期间记录的消息。

Catalog.operations(SSISDB 数据库) 显示 Integration ServicesIntegration Services 目录中所有操作的详细信息。

Catalog.packages(SSISDB 数据库) 显示 Integration ServicesIntegration Services 目录中出现的所有包的详细信息。

Catalog.environment_references(SSISDB 数据库) 显示 Integration Services [目录][] 中所有项目的环境引用

Catalog.projects(SSISDB 数据库) 显示 Integration ServicesIntegration Services 目录中出现的所有项目的详细信息。

Catalog.validations(SSISDB 数据库) 显示 Integration ServicesIntegration Services 目录中所有项目和包验证的详细信息。

Catalog.master_properties(SSISDB 数据库) 显示 Integration Services 横向扩展主服务器的属性。

Catalog.worker_agents(SSISDB 数据库) 显示 Integration Services 横向扩展工作线程的信息。