【问题标题】:how to condition split supporting case details information in ssis如何在 ssis 中拆分支持案例详细信息
【发布时间】:2018-05-17 13:56:02
【问题描述】:

SSIS 中的条件拆分转换可能有多少个最大情况?

【问题讨论】:

  • 您预计需要多少?

标签: ssis ssis-2012 ssis-2008


【解决方案1】:

我不知道。

我知道,使用下面的 Biml,我能够生成一个带有条件拆分的 SSIS 包,其中包含 1024 个输出路径,这些路径进入它们自己的空派生列。

<Biml xmlns="http://schemas.varigence.com/biml.xsd">
    <#int upperBound = 1023;#>
    <Connections>
        <OleDbConnection ConnectionString="Data Source=localhost\dev2014;Initial Catalog=tempdb;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;Packet Size=32767;" Name="Source" />
    </Connections>
    <Packages>
        <Package Name="SO_50393307">
            <Tasks>
                <Dataflow Name="DFT CSPL POC">
                    <Transformations>
                        <OleDbSource Name="SRC Query" ConnectionName="Source">
                            <DirectInput>SELECT 1 AS Col1;</DirectInput>
                        </OleDbSource>
                        <ConditionalSplit Name="CSPL Boundary Test" >
                            <OutputPaths>
                                <# foreach (int indexer in System.Linq.Enumerable.Range(0, upperBound)){#>
                                <OutputPath Name="Repro_<#= indexer #>"><Expression><![CDATA[Col1 == <#= indexer #>]]></Expression></OutputPath>
                                <#}#>
                            </OutputPaths>
                        </ConditionalSplit>
                        <# foreach (int indexer in System.Linq.Enumerable.Range(0, upperBound)){#>
                        <DerivedColumns Name="DER Anchor <#= indexer #>">
                            <InputPath OutputPathName="CSPL Boundary Test.Repro_<#= indexer #>" />
                        </DerivedColumns>
                        <#}#>
                    </Transformations>
                </Dataflow>
            </Tasks>
        </Package>
    </Packages>
</Biml>

现在,仅仅因为我能够生成该包并不意味着 Visual Studio 可以编辑该包。让 VS2017 打开它一个小时后,我放弃了。

它确实执行了 - 从命令行花费了 7 秒。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-11-03
    • 2021-03-11
    • 2022-10-04
    • 2011-12-21
    • 2021-04-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多