且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 biml 分配属性以执行包任务 ssis 对象

更新时间:2023-02-07 14:02:26

在你的 ExecutePackage 标签中,你需要指定它是一个 SqlServer 源.>

在以下声明中,我创建了两个连接管理器,一个用于基于文件的连接管理器,另一个用于到我的命名实例的 SQL 连接.

Biml 本身创建了 2 个包.一个孩子和一个家长.Parent 包创建了两个执行包任务

<连接><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></连接><包><包名称="子"约束模式=线性"></包><包名称="父"ConstraintMode="线性"><任务><ExecutePackage Name="EPT 文件子级"><File ConnectionName="FCChild"></File></ExecutePackage><ExecutePackage Name="EPT SS Child"><SqlServer ConnectionName="OLEChild" PackagePath="\Child"></SqlServer></ExecutePackage></任务></包></包></Biml>

生成的 SQL Server 执行包任务显示为

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

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