Article ID: 243775 - Last Review: October 27, 2000 - Revision: 1.1 INF: How to Use Lookups in Data Transformation ServicesThis article was previously published under Q243775 SUMMARY
A lookup is a query that is executed for every row in a transformation. Because a lookup is called for every row, the use of a lookup might have some performance impact such as:
MORE INFORMATION
Work the lookup into your source query. If the source is a file, consider using a bulk insert into a staging table, and then use a query on the table to avoid using the lookup.
How to Improve Lookup SpeedLookups have their own cache. If the cardinality of the data is low it will help performance significantly. Use a separate connection for the lookup, which keeps the lookup from interrupting the source and destination.Technical BitsLookups are parameterized queries, and they can use multiple parameters. A lookup can also return multiple values (into a zero based array). Only the first row of the result set is returned. A lookup does not have to return any results and you can use it to perform inserts, updates or deletes.Lookup ExamplesA simple lookup:User ScenariosRow Level RestartabilityFinding a surrogate key (where a query cannot). A data warehouse dimension table may have a separate identity that is not related to anything. When you perform an insert into the fact table you may have to perform a lookup on the values in the dimension table to return the key for the fact table. 242543
(http://support.microsoft.com/kb/242543/EN-US/
)
INF: DTS Row Level Restartability After an Unexpected Failure
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|

Back to the top
