1

我正在使用 SQL Server 2008 BID / BIML,如何勾选模糊查找转换编辑器的列选项卡上的“可用输入列”复选框,列名为 inputFile_id?

我不会在此列上匹配,只需将其传递给 FLT;只需勾选 Fuzzy Lookup Transformation Editor 的列选项卡上的 inputFile_id “Pass Through”复选框。希望在复选框的屏幕截图下方。

        <Biml xmlns="http://schemas.varigence.com/biml.xsd">
        <Connections>
            <OleDbConnection Name="SourceData" ConnectionString="Provider=SQLNCLI10;Server=myServer;Initial Catalog=myCat;Integrated Security=SSPI;" DelayValidation="true" />
        </Connections>
        <Packages>
            <Package Name="_step01_CreateIndex" ConstraintMode="Linear">
                <Tasks>
                    <Dataflow Name="My Dataflow Task">
                        <Transformations>
                            <OleDbSource Name="list of people to match to reference list" ConnectionName="SourceData">
                                <DirectInput>select TOP 1000 inputFile_id, forename, surname from dbo.peopleToMatchInputFile</DirectInput>
                            </OleDbSource>
                            <!-- Column names must be the same in dbo.peopleToMatchInputFile AND dbo.referenceListOfPeople. -->
                            <!-- A column from dbo.peopleToMatchInputFile MUST BE mapped to a column in dbo.referenceListOfPeople. -->
                            <FuzzyLookup Name="FLT - Generate new index" 
                                         MatchIndexOptions="GenerateAndPersistNewIndex"  
                                         MatchIndexName="dbo.referenceListOfPeopleINDEX"
                                         ConnectionName="SourceData"  
                                         Exhaustive="false" >
                                <ExternalReferenceTableInput Table="dbo.referenceListOfPeople" />
                                <Inputs>
                                    <Column SourceColumn="forename" TargetColumn="forename" MatchTypeExact ="false" MinSimilarity ="95" />
                                    <Column SourceColumn="surname" TargetColumn="surname" MatchTypeExact="true" />
                                    <Column SourceColumn="inputFile_id" TargetColumn="inputFile_id" PassThrough="true" IsUsed="false"/>
                                </Inputs>
                                <Outputs>
                                    <Column SourceColumn="lookup_id" TargetColumn="lookup_id" />
                                    <Column SourceColumn="forename" TargetColumn="OutputAlias_forename" />
                                    <Column SourceColumn="surname" TargetColumn="surname" IsUsed="false" />
                                    <Column SourceColumn="streetName" TargetColumn="streetName" />
                                    <Column SourceColumn="dependantLocality" TargetColumn="dependantLocality" />
                                    <Column SourceColumn="postalCounty" TargetColumn="postalCounty" />
                                    <Column SourceColumn="postTown" TargetColumn="OutputAlias_postTown" />
                                </Outputs>
                            </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].[peopleToMatchInputFile](
        [inputFile_id] [int] IDENTITY(1,1) NOT NULL,
        [forename] [varchar](35) NOT NULL,
        [surname] [varchar](35) NOT NULL,
        [streetName] [varchar](80) NULL,
        [batchNo] [int] NULL
        )


    CREATE TABLE [dbo].[referenceListOfPeople](
        [lookup_id] [int] IDENTITY(1,1) NOT NULL,
        [forename] [varchar](35) NOT NULL,
        [surname] [varchar](35) NOT NULL,
        [streetName] [varchar](80) NULL,
        [dependantLocality] [varchar](35) NULL,
        [postTown] [varchar](35) NULL,
        [postalCounty] [varchar](35) NULL
        )
        -->

复选框

4

0 回答 0