Solved

10777 multiple lookup, as I do?

Posted on 2014-09-30
5
185 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now