Article ID: 249236 - Last Review: January 14, 2004 - Revision: 4.4 HOW TO: Return Multiple Columns in a DTS Lookup Query
This article was previously published under Q249236 SUMMARY
With the Data Transformation Services (DTS) Lookup object, you can retrieve data from locations other than the immediate source. A query and a connection is associated with the lookup. If the query returns more than a single column, the Lookup object returns the results in a zero-based array.
The following sample code demonstrates how to execute a multiple-column lookup, to retrieve the values for each column that is returned into variables, and then to use those variables in the transformation. The sample is based on the authors table in the pubs database and it uses the au_id column to look up and to return the au_lname and au_fname columns. The Lookup query is named "Two Column Lookup" and it is defined as: | Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
