Solved

10777 multiple lookup, as I do?

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

707 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

16 Experts available now in Live!

Get 1:1 Help Now