1

我正在运行使用下面给出的 dtexec 命令在 Visual Studio 2019 中开发的 SSIS 包。我们使用的是 SQL Server Management Studio 2019 版本。包被部署到集成服务目录。

DTEXEC /ISSERVER "\SSISDB\Folder\Project\Package.dtsx" /SERVER xxx /Par "\"$ServerOption::SYNCHRONIZED(Boolean)\"";True /CHECKPOINTING OFF /REPORTING EW

如果包中有错误,我看到的只是:

Microsoft (R) SQL Server Execute Package Utility
Version 15.0.2000.5 for 32-bit
Copyright (C) 2019 Microsoft. All rights reserved.

Started:  1:56:31 PM
Package execution on IS Server failed. Execution ID: 457, Execution Status:4.
To view the details for the execution, right-click on the Integration Services Catalog, and open the [All Executions] report
Started:  1:56:31 PM
Finished: 1:56:45 PM
Elapsed:  13.703 seconds

要检查错误,我应该转到All Executions集成服务目录。

如果我从 skybot 作业运行 Dtexec 命令,如果 skybot 作业失败,我如何获取错误日志?理想情况下,我希望获得以下格式的错误、错误代码、来源和描述详细信息:

Started:  9:00:12 PM
Error: 2021-01-11 21:00:13.15
   Code: 0x00000008
   Source: SQL_Task 
   Description: The script returned a failure result.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started:  9:00:12 PM
Finished: 9:00:13 PM
Elapsed:  0.733 seconds
4

0 回答 0