Solved

Lookup value from a table based on a column value in an SSIS Flat File Source

Posted on 2008-06-11
4
159 Views
Last Modified: 2010-05-18
I have a CSV file which I read into SSIS using Flat File Source. This CSV doesn't have all the columns required by the destination - I need to get the row values for these columns from other tables based on the row values in the CSV.

I thought you could enter a SELECT statement such as "select id from testtable where testcode = ?" in the expression field in the Derived Column component but this will not parse.

Does anyone know how to do this in SSIS?
0
Comment
Question by:meninga
  • 2
4 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 21760723
You'll likely need to use the Lookup tasks in SSIS to do this.
0
 
LVL 8

Accepted Solution

by:
i2mental earned 125 total points
ID: 21760751
It sounds like you just need to do a lookup transformation. You'll need a connection manager pointed to that testtable obviously. Just add the lookup to your data flow and create the join to the testtable on testcode. Add the value you're looking up from the test table as a new column and you're done.

Derived columns use expressions.
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 21761845
Why are you closing this?  
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Suggested Solutions

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now