<Biml xmlns="http://schemas.varigence.com/biml.xsd">
<Packages>
<Package Name="Extraction_RecordCount" ConstraintMode="Parallel">
<Tasks>
<ExecuteSQL Name="Extraction_RecordCount" ConnectionName="Target">
<DirectInput> <![CDATA[ Truncate table CMC.Extraction_RecordCount ]]> </DirectInput>
</ExecuteSQL>
<Dataflow Name="Fill Extraction_RecordCount">
<PrecedenceConstraints>
<Inputs>
<Input OutputPathName="Extraction_RecordCount.Output" />
</Inputs>
</PrecedenceConstraints>
<Transformations>
<OleDbSource Name="ExtractedTables" ConnectionName="Target" >
<DirectInput>
<![CDATA[
SELECT cast( sysobjects.NAME as nvarchar(128)) as TableName
,sysindexes.Rows as #Rows
FROM sysobjects
INNER JOIN sysindexes ON sysobjects.id = sysindexes.id
INNER JOIN ( SELECT c.table_name ,c.table_schema FROM information_schema.columns c GROUP BY c.table_name ,c.table_schema) c ON c.table_name = sysobjects.NAME
WHERE type = 'U'
AND sysindexes.IndId < 2
AND c.table_schema = 'EXT'
ORDER BY TableName, #Rows
]]>
</DirectInput>
</OleDbSource>
<OleDbSource Name="BackOffice" ConnectionName="Source" >
<DirectInput> <![CDATA[ select TABLE_NAME , cast(NUM_ROWS as int) as NUM_ROWS from ALL_ALL_TABLES ORDER BY TABLE_NAME, NUM_ROWS]]> </DirectInput>
</OleDbSource>
<MergeJoin Name="Join Extracted Tables w BACKOFFICE" JoinType="InnerJoin">
<LeftInputPath OutputPathName="ExtractedTables.Output">
<Columns>
<Column SourceColumn="TableName" SortKeyPosition="1"/>
<Column SourceColumn="#Rows" SortKeyPosition="2"/>
</Columns>
</LeftInputPath>
<RightInputPath OutputPathName="BackOffice.Output">
<Columns>
<Column SourceColumn="TABLE_NAME" SortKeyPosition="1"/>
<Column SourceColumn="NUM_ROWS" SortKeyPosition="2" />
</Columns>
</RightInputPath>
<JoinKeys>
<JoinKey LeftColumn="TableName" RightColumn="TABLE_NAME" />
</JoinKeys>
</MergeJoin>
<OleDbDestination Name="Extraction_RecordCount" ConnectionName="Target">
<ExternalTableOutput Table="CMC.Extraction_RecordCount"/>
</OleDbDestination>
</Transformations>
</Dataflow>
</Tasks>
</Package>
</Packages>
このコードはパッケージ 'Extraction_RecordCount' を生成しますが、両方のソースの入力をソートする必要があることを示すエラーが 'Merge Join' コンポーネントによってスローされます。'IsSorted' = 'True' を手動で設定し、'SortKeyPosition' を設定すると、一時的に問題が解決します。
Sort-components の挿入も機能しません。