sql - Why does SSIS Lookup task output a DT_TEXT type even though the value returned through the lookup is a VARCHAR(50)? -


P>

I have a simple SSIS package that imports data from a delimited text file, does a lookup in a SQL Server table, by joining the key field (int) and using the UserName (varchar (50)) This table returns back to the table.

Sample of Import File Data:

  Key Age 2 21 3 87 1 54  

Both key and age int.

Sample of lookup table:

  Key Username 1 Joe 2 Tom 3 Paul 4 Jack 5 Mary  

is key int and UserID varchar (50).

When I add the Lookup box to the next step and combine them together (the matching field), the data type for the user name field is DT_TEXT

Why does this happen, And what's my best way to fix or work around? I tried a data conversion component but SSIS did not complain about converting DT_TEXT to varchar (DT_STR).

Did you see "Show input editor ..." (click on data stream source) and " In the input and output "tab in the output column, try to use the data type property to be converted to" string of data [DT_STR] "" length 50 "?


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -