Assign properties to execute package task ssis object using biml

拟墨画扇 提交于 2019-12-23 20:57:18

问题


using biml (via BIDS helper in visual studio) how do i assign values to the properties of the SSIS 2008 Execute Package Task object, specifically

  • Location: SQL Server
  • Connection: SomeConnectionString

using BIML. I have searched for many hours and cannot find how to set these properties


回答1:


Inside your ExecutePackage tag, you'll need to specify that it's a SqlServer source.

In the following declaration, I create two connection managers, one for a file based connection manager and one for a SQL connection to my named instance.

The Biml itself creates 2 packages. A Child and Parent. The Parent package creates two Execute Package Tasks

<Biml xmlns="http://schemas.varigence.com/biml.xsd">
  <Connections>
    <FileConnection Name="FCChild" FilePath="c:\Users\bfellows\documents\visual studio 2012\Projects\SSISPOC\PackageDeploymentModel\Child.dtsx"></FileConnection>
    <OleDbConnection Name="OLEChild" ConnectionString="Data Source=localhost\dev2012;Initial Catalog=tempdb;Provider=SQLNCLI10.1;Integrated Security=SSPI;"></OleDbConnection>
  </Connections>
  <Packages>
    <Package Name="Child"
             ConstraintMode="Linear"
             >
    </Package>
    <Package Name="Parent" 
             ConstraintMode="Linear">
      <Tasks>
        <ExecutePackage Name="EPT File Child">
          <File ConnectionName="FCChild"></File>
        </ExecutePackage>

        <ExecutePackage Name="EPT SS Child">
          <SqlServer ConnectionName="OLEChild" PackagePath="\Child"></SqlServer>
        </ExecutePackage>
      </Tasks>
    </Package>
  </Packages>
</Biml>

The resulting Execute Package Task for the SQL Server appears as



来源:https://stackoverflow.com/questions/21169159/assign-properties-to-execute-package-task-ssis-object-using-biml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!