dbTalk Databases Forums  

Change Lookup Query

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


Discuss Change Lookup Query in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thom
 
Posts: n/a

Default Change Lookup Query - 06-05-2006 , 11:42 AM






Is there a way to programatically change the query that Lookup is executing?
I gave up trying to find a way to reset a connection each time the lookup is
called.

Thom

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Change Lookup Query - 06-05-2006 , 12:14 PM






Hello Thom,

You can get to the query property of a lookup using something like this

dim lkp

for each lkp in DTSGlobalVariables.Parent.Tasks("DTSTask_DTSDataPu mpTask_1").CustomTask.Lookups

MsgBox lkp.Query

Next

Allan


Quote:
Is there a way to programatically change the query that Lookup is
executing?
I gave up trying to find a way to reset a connection each time the
lookup is
called.
Thom




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.