BIML中是否支持平衡数据分配器组件? 文档包含: https://varigence.com/Documentation/Language/Element/AstBalancedDataDistributorNode
但是当我使用这个元素时,我收到以下错误:
Error 0 FlowFramework, Version=5.0.60425.0, Culture=neutral, PublicKeyToken=015f370a62f9a1a3. No translator was found for the component Data Distributor of type AstBalancedDataDistributorNode in Dataflow ...
我的biml看起来像这样:
<BalancedDataDistributor Name="Data Distributor">
<InputPath OutputPathName="Insert Row Count.Output"/>
<OutputPaths>
<OutputPath Name="DD1" />
<OutputPath Name="DD2" />
<OutputPath Name="DD3" />
<OutputPath Name="DD4" />
<OutputPath Name="DD5" />
</OutputPaths>
</BalancedDataDistributor>
我找到了这个例子,它似乎把它当作一个自定义组件。也许这是在它被纳入SSIS之前:http://www.bimlscript.com/Snippet/Details/82 它在SQL 2016中不起作用 - BIML会生成它,但它在任务上有错误的图标,当你尝试执行它时它找不到该组件。
答案 0 :(得分:2)
我使用此代码段作为模板使用此功能: http://www.bimlscript.com/Snippet/Details/82
为了使其适用于我的SSDT版本,我必须更新ComponentClassId,如下所述(487806FB-4C3B-4DCD-B91D-62CAAE06D460
到C925C2DD-D414-4F4D-942E-F4F3E4871666
)。前者可能来自SQL 2014
<CustomComponent Name="Data Distributor" ComponentClassId="C925C2DD-D414-4F4D-942E-F4F3E4871666" ComponentTypeName="Balanced Data Distributor" ContactInfo="Balanced Data Distributor;Microsoft Corporation; Microsoft SqlServer; (C) Microsoft Corporation; All Rights Reserved; http://www.microsoft.com/sql/support;0">
<InputPaths>
<InputPath OutputPathName="Insert Row Count.Output" Identifier="Data Distributor Input"/>
</InputPaths>
<OutputPaths>
<OutputPath Name="DD1" ErrorOrTruncationOperation="" SynchronousInput="Data Distributor Input" ExclusionGroup="1"/>
<OutputPath Name="DD2" ErrorOrTruncationOperation="" SynchronousInput="Data Distributor Input" ExclusionGroup="1"/>
<OutputPath Name="DD3" ErrorOrTruncationOperation="" SynchronousInput="Data Distributor Input" ExclusionGroup="1"/>
<OutputPath Name="DD4" ErrorOrTruncationOperation="" SynchronousInput="Data Distributor Input" ExclusionGroup="1"/>
<OutputPath Name="DD5" ErrorOrTruncationOperation="" SynchronousInput="Data Distributor Input" ExclusionGroup="1"/>
</OutputPaths>
</CustomComponent>