Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Handling nomatch output for Lookup transformation in SSIS 2008

$
0
0

My source file has data like below
col1,col2,col3
PA,East,USA
CA,West,USA
FL,South,USA
WA,North,USA

and my lookup table in SQL database has the below information

Short_Name Long_Name
PA Pennsylvania
CA California
FL Florida

In the Lookup tranformation editor columns window, I mapped my source file col1 to Short_name column from database. I selected long_name column to add as a new column. When I execute my package my match output is like below (As expected)

Match Output from lookup

Pennsylvania,East,USA
California,West,USA
Florida,South,USA

and my NoMatch output looks like below

,North,USA

What I am saying is if it wont find a match (in case of WA from sample data) I want to see my nomatch output as below
WA,North,USA

Please give me suggestions. Appreciate your help and thanks for your time.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>