3
如何使用BID和BIML在SQL Server 2008中的模糊查找轉換(FLT)對象中勾選複選框。我假設它將輸出列添加到輸出路徑,我不知道?我想我的輸出是只需使用SSIS在模糊查找轉換對象中勾選複選框BIML
查找列=屬性
查找列= AddThisColumn
輸出別名= Attribute2
輸出別名= AddThisColumn
下面是一個2X屏幕截圖沿BIML腳本, 1)複選框AddThisColumn unticked(當前狀態)2)複選框AddThisColumn打勾(我想)
<Biml xmlns="http://schemas.varigence.com/biml.xsd">
<Connections>
<OleDbConnection Name="SportsData" ConnectionString="Provider=SQLNCLI10;Server=myServer;Initial Catalog=myCatalog;Integrated Security=SSPI;" DelayValidation="true" />
</Connections>
<Packages>
<Package Name="_my Package" ConstraintMode="Linear">
<Tasks>
<Dataflow Name="My Dataflow Task">
<Transformations>
<OleDbSource Name="SurveyResponses" ConnectionName="SportsData">
<DirectInput>select * from SurveyResponses</DirectInput>
</OleDbSource>
<!-- Performs a fuzzy lookup on the Attribute column against the JuniorSurveyResponse DB, and outputs the corresponding Response column to NewResponse. -->
<FuzzyLookup Name="Fuzzy Lookup Transformation" ConnectionName="SportsData" Exhaustive="true"
MatchIndexName="dbo.JuniorSurveyResponsesIndex" DropExistingIndex="false"
CopyReferenceTable="true" WarmCaches="false" MatchIndexOptions="ReuseExistingIndex" ValidateExternalMetadata="false" >
<ExternalReferenceTableInput Table="dbo.JuniorSurveyResponses" />
<Inputs>
<Column SourceColumn="Attribute" TargetColumn="Attribute" />
</Inputs>
<Outputs>
<Column SourceColumn="Attribute" TargetColumn="Attribute2" />
</Outputs>
<InputPath OutputPathName="SurveyResponses.Output" />
</FuzzyLookup>
</Transformations>
</Dataflow>
</Tasks>
</Package>
</Packages>
</Biml>
<#@ template language="C#" hostspecific="true"#>
<#@ import namespace="System.Data" #>
<#@ import namespace="Varigence.Hadron.CoreLowerer.SchemaManagement" #>
<!--
CREATE TABLE dbo.JuniorSurveyResponses
(
Attribute varchar(50)
, Response varchar(50)
, AddThisColum varchar(50)
);
CREATE TABLE dbo.SurveyResponses
(
Attribute varchar(50)
, Response varchar(50)
);
-->
下面應該是輸出圖像,其中名爲AddThisColumn的列未被選中。
下面應該是一個輸出的圖像,其中名爲AddThisColumn的列是check。我如何編寫腳本?
billinkc的另一個提示和出色的答案!作爲我可能過分簡化我的問題的一個附註,請留意另一個類似的問題。再次感謝billinkc – norm