如何使用 BID 和 BIML 在 SQL Server 2008 中的模糊查找转换 (FLT) 对象中勾选复选框。我假设它将输出列添加到输出路径,我不知道?我希望我的输出是
查找列 = 属性
查找列 = AddThisColumn
输出别名 = Attribute2
输出别名 = AddThisColumn
下面是 BIML 脚本以及 2x 屏幕截图,1)复选框 AddThisColumn 未选中(当前状态)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 的列。我该如何编写这个脚本?