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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Get the value from destination db table
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

13 Posts

Posted - 03/18/2014 :  02:22:21  Show Profile  Reply with Quote

I have a below requiremnt. Please suggest me how to do this.

From source, I am getting three columns data and I have to insert this data into destination table. Two columns i have mapped diectly. Upto here no issue.
Think that my third column is country name and in the destination I have to insert the countryid instead of country name. Country master table is in destination db.How can I get the country id using the country name and how to insert this into my destination table along with other two columns.

Ramesh D

Yak Posting Veteran

93 Posts

Posted - 03/27/2014 :  12:12:16  Show Profile  Reply with Quote
You have to use a Lookup transformation with the Country table. Lookup transformation can be used as a Join statement in sql. Inside the Lookup transformation in ssis, map country name of the source to the country name of DimCountry and also choose Country ID from DimCountry Table.

Visit for more t-sql code snippets and BI related how to articles.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000