dbTalk Databases Forums  

Lookups on string columns failing

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Lookups on string columns failing in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brandon Lilly
 
Posts: n/a

Default Lookups on string columns failing - 04-26-2006 , 04:39 PM






(Note: SSIS not DTS)

Anytime I try to perform lookups for string columns, I never get a match
unless the string takes up the maximum size. For example:

Pipeline Value Lookup Value Result
========= ========= =====
THIS WORKS THIS WORKS Finds lookup value
NOPE NOPE Does NOT find lookup value

The database string is declared as varchar(whatever) and the pipeline is
declared as DT_STR(whatever), where "whatever" is an equal value length for
the strings. I am trimming all string data as it is loaded from the flat
files into the pipeline. Is this causing the problem?

Thanks!

Brandon

Reply With Quote
  #2  
Old   
Brandon Lilly
 
Posts: n/a

Default RE: Lookups on string columns failing - 05-04-2006 , 05:44 PM






This was answered in a blog I ran across totally by accident.....
http://blogs.conchango.com/kristianw...2/22/2955.aspx

Thanks a ton, I wasted soooooo much time on this problem.

Brandon

Reply With Quote
  #3  
Old   
yongli
 
Posts: n/a

Default RE: Lookups on string columns failing - 05-21-2006 , 07:08 PM



This is a good article. I am new to SSIS too and spent fair amount of time
figuring the lookup issue on my own

"Brandon Lilly" wrote:

Quote:
(Note: SSIS not DTS)

Anytime I try to perform lookups for string columns, I never get a match
unless the string takes up the maximum size. For example:

Pipeline Value Lookup Value Result
========= ========= =====
THIS WORKS THIS WORKS Finds lookup value
NOPE NOPE Does NOT find lookup value

The database string is declared as varchar(whatever) and the pipeline is
declared as DT_STR(whatever), where "whatever" is an equal value length for
the strings. I am trimming all string data as it is loaded from the flat
files into the pipeline. Is this causing the problem?

Thanks!

Brandon

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.