I'm working on an SSIS package that takes a flat file as a source, looks up a value in a table based on 2 fields in the flat file record and writes the fields from the flat file plus the value retrieved to a destination table. It takes hours to run
and I was looking for a way to speed it up. My flat file contains about 300,000 records. My Lookup Transformation uses the results of a SQL query which is pretty complex and joins 5 different tables. Would it be possible and save time to
create a temp table from the SQL query which would contain only 3 columns and do a lookup on that?
↧