SSIS 屬性LoggingMode和日誌記錄配置的繼承

來源:互聯網
上載者:User

標籤:

在配置Package的logging時,左邊的Containers,Execute SQL Task前麵灰色的“√”表示Execute SQL Task繼承Test Log Package的日誌記錄的配置。Package內的Task,Container的屬性LoggingMode有三種選項:UseParentSetting,Enable和Disable。

UseParentSetting表示繼承Package的設定,Enable表示開機記錄記錄,但是需要單獨配置,Disable表示不記錄組件的日誌。

查看Execute SQL Task的Properties LoggingMode,使用UseParentSetting選項繼承Package的日誌記錄配置。

 Parent Logging Options

Frequently, the logging options of tasks and For Loop, Foreach Loop, and Sequence containers match those of the package or a parent container. In that case, you can configure them to inherit their logging options from their parent container. For example, in a For Loop container that includes an Execute SQL task, the Execute SQL task can use the logging options that are set on the For Loop container. To use the parent logging options, you set the LoggingMode property of the container to UseParentSetting. You can set this property in the Properties window of SQL Server Data Tools (SSDT) or through the Configure SSIS Logs dialog box in SSIS Designer.

 

樣本,將Execute SQL Task的LoggingMode設定為Enable,單獨配置組件記錄的日誌

Step1,Execute SQL Task前面有黑色的“√”,表示Execute SQL Task的LoggingMode設定Enable,開啟右邊的Providers andLogs選項,配置Logging Provider,選擇使用SSIS Log Provoder For SQL Server,將日誌記錄到Sql Server的表中。

 

Step2,點擊Details,配置需要進行記錄的Event和Event的屬性列。

Step3,執行Package,查看記錄的日誌記錄

SSIS使用Step2中配置的Connection,建立一個System Table,表名是dbo.sysssislog

 

SSIS 屬性LoggingMode和日誌記錄配置的繼承

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.