共用方式為


疑難解答工具套件連線性

Integration Services 包含功能與工具,可用來針對封裝與封裝擷取和載入數據的數據源之間的連線進行疑難解答。

針對外部數據提供者的問題進行疑難解答

許多套件在與外部數據提供者的互動期間失敗。 不過,這些提供者經常傳回 Integration Services 的訊息並未提供足夠的資訊,無法開始針對互動進行疑難解答。 為了解決此疑難解答需求,Integration Services 包含記錄訊息,可用來針對套件與外部數據源的互動進行疑難解答。

  • 啟用記錄並選取套件的診斷事件,以查看疑難解答訊息。 下列 Integration Services 元件能夠在每次呼叫外部數據提供者之前和之後,將訊息寫入記錄檔:

    • OLE DB 連接管理員、OLE DB 來源和 OLE DB 目的地

    • ADO.NET 連接管理員和 ADO NET 來源

    • 執行 SQL 工作

    • 查找轉換、OLE DB 命令轉換和緩慢變化維度轉換

    記錄訊息包含所呼叫之方法的名稱。 例如,這些記錄訊息可能包含 OLE DB 物件的Open 方法或其他物件的ExecuteNonQuery 方法Command。 訊息的格式如下,其中 '%1!s!' 是方法資訊的佔位元:

    ExternalRequest_pre: The object is ready to make the following external request: '%1!s!'.  
    ExternalRequest_post: '%1!s!'. The external request has completed.  
    

    若要針對與外部數據提供者的互動進行疑難解答,請檢閱記錄,以查看每個「之前」訊息(ExternalRequest_pre) 是否有對應的「之後」訊息(ExternalRequest_post)。 如果沒有對應的「之後」訊息,您就知道外部數據提供者未如預期般回應。

    下列範例顯示包含這些記錄訊息的記錄檔中的一些範例資料列:

    ExternalRequest_pre: The object is ready to make the following external request: 'ITransactionJoin::JoinTransaction'.  
    ExternalRequest_post: 'ITransactionJoin::JoinTransaction succeeded'. The external request has completed.  
    ExternalRequest_pre: The object is ready to make the following external request: 'IDbConnection.Open'.  
    ExternalRequest_post: 'IDbConnection.Open succeeded'. The external request has completed.  
    ExternalRequest_pre: The object is ready to make the following external request: 'IDbConnection.CreateCommand'.  
    ExternalRequest_post: 'IDbConnection.CreateCommand finished'. The external request has completed."  
    ExternalRequest_pre: The object is ready to make the following external request: 'IDbCommand.ExecuteReader'.  
    ExternalRequest_post: 'IDbCommand.ExecuteReader finished'. The external request has completed."  
    ExternalRequest_pre: The object is ready to make the following external request: 'IDataReader.GetSchemaTable'.  
    ExternalRequest_post: 'IDataReader.GetSchemaTable finished'. The external request has completed."  
    ExternalRequest_pre: The object is ready to make the following external request: 'IDataReader.Close'.  
    ExternalRequest_post: 'IDataReader.Close finished'. The external request has completed."  
    ExternalRequest_pre: The object is ready to make the following external request: 'IDbConnection.Close'.  
    ExternalRequest_post: 'IDbConnection.Close finished'. The external request has completed."  
    

另請參閱

套件開發的疑難排解工具
封裝執行的疑難解答工具