Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Derive value

Author  Topic 

sgandhi
Posting Yak Master

115 Posts

Posted - 2009-03-10 : 09:04:15
Hi, how do i derive this value in SSIS
select
case when substring(original_filename,40,3) = 'FRA' THEN 'France'
WHEN substring(original_filename,40,3) = 'GER' THEN 'France'
WHEN substring(original_filename,40,3) = 'IRE' THEN 'Ireland'
WHEN substring(original_filename,40,3) = 'ITA' THEN 'Italy'
WHEN substring(original_filename,40,3) = 'SPA' THEN 'Spain'
WHEN substring(original_filename,40,3) = 'UKE' THEN 'France'
else country
end as country from dbo.Initial_International_Catalog


This is what i want it to say, but i dont know how to incorporate this into the package.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-03-10 : 14:27:01
use a execute sql task for this if in control flow or oledb command task if in data flow
Go to Top of Page
   

- Advertisement -