Solved

10777 multiple lookup, as I do?

Posted on 2014-09-30
5
187 Views
Last Modified: 2014-10-01
Hi Experts, I have a table that has several foreign keys, therefore I use multiple lookup, as I do?
My source is flat file source information

codigoMaterialReal;codigoOrganizacionVenta;descripcionMaterialReal;codigoTipoArticulo;codigoGramaje;codigoCapacidad;codigoIntervaloCapacidad;codigoColor
000000000100000048;PE10;RES - CLEAR PET CP001 NFDA CR.;003;058;;;017
000000000100000110;PE10;PRE 15.6 GR.ACEITE;002;073;;;001
000000000100000121;PE10;PLOP XXXXX INSPECTOR;003;058;;;017
000000000100000122;PE10;PLOP XXXXX METAL;003;058;;;017
000000000100000123;PE10;PLOP XXXX SEA;003;058;;;017
000000000100000137;PE10;PLOP - NO USAR CODIGO;002;001;;;001
createTABLE.png
0
Comment
Question by:enrique_aeo
  • 3
  • 2
5 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40353018
Necesita explicar, por favor.

What program are you in (SSMS or BIDS/SSDT), and ¿qué quieres hacer? Why are you asking about multiple lookups? Are you trying to get additional information from another table?
0
 

Author Comment

by:enrique_aeo
ID: 40353308
ok
i am using SSIS
below the image of the solution, there is another way to do it?
LOOKUP.png
0
 
LVL 24

Assisted Solution

by:Phillip Burton
Phillip Burton earned 500 total points
ID: 40353337
If what you are trying to do is get a value from another table - for example, you have a Company IDA and you want the company name, then that is a fair way to do it.

You could do an Execute SQL task instead, using a staging table. If performance is the problem, there may be Lookup options you can try.

If it works, what is wrong?
0
 

Author Comment

by:enrique_aeo
ID: 40353359
it is works!!!

can you give me an example with Execute SQL task
0
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40354045
It's exactly the same as if you were doing it in SSMS. So if you know how to do the inner joins in SSMS, you know how to do it it in SSIS.

1. Load the data from your flat file.
2. Save the data into a table in the same database as your other tables.
3. Do the Execute SQL Task.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question