dbTalk Databases Forums  

Retrieve multiple records from DTS Lookup

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Retrieve multiple records from DTS Lookup in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rsbaier@gmail.com
 
Posts: n/a

Default Retrieve multiple records from DTS Lookup - 08-23-2006 , 05:09 PM






I need to:
1. Retrieve a subset of data based on data from each source record.
2. Perform some analysis on this data.
3. Set a value in the destination based on this analysis.

I'm fairly new to DTS, but after a little research I thought I was on
to something with the Lookup feature. After struggling trying to get
the process to work and doing some poking around on this board, my
understanding is now that the Lookup only supports returning a single
row of data. Is this correct? If so, are there any recommendations on
alternate ways I can accomplish my need?

I am using SQL 2000.

Thanks in advance for any help. Sorry if my explanation is not clear.

Rich


Reply With Quote
  #2  
Old   
Charles Kangai
 
Posts: n/a

Default RE: Retrieve multiple records from DTS Lookup - 08-24-2006 , 09:29 AM






If you want to return multiple records, I suggest you change strategy and
instead of using a lookup, use a linked server. On your SQL Server, create a
linked server that points to your source table. Write a distributed join
query that returns data from your source data and the reference table. Use
this as the source of your DTS pump task.

Charles Kangai, MCT, MCDBA

"rsbaier (AT) gmail (DOT) com" wrote:

Quote:
I need to:
1. Retrieve a subset of data based on data from each source record.
2. Perform some analysis on this data.
3. Set a value in the destination based on this analysis.

I'm fairly new to DTS, but after a little research I thought I was on
to something with the Lookup feature. After struggling trying to get
the process to work and doing some poking around on this board, my
understanding is now that the Lookup only supports returning a single
row of data. Is this correct? If so, are there any recommendations on
alternate ways I can accomplish my need?

I am using SQL 2000.

Thanks in advance for any help. Sorry if my explanation is not clear.

Rich



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.