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.
Author |
Topic |
rameshgoudd
Starting Member
13 Posts |
Posted - 2014-03-18 : 02:22:21
|
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.ThanksRamesh D |
|
sqlsaga
Yak Posting Veteran
93 Posts |
Posted - 2014-03-27 : 12:12:16
|
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. |
|
|
|
|
|