SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

rameshgoudd
Starting Member

13 Posts

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

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.

Thanks
Ramesh D

sqlsaga
Yak Posting Veteran

USA
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 www.sqlsaga.com for more t-sql code snippets and BI related how to articles.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.07 seconds. Powered By: Snitz Forums 2000