dbTalk Databases Forums  

DTSLookups Error

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


Discuss DTSLookups Error in the microsoft.public.sqlserver.dts forum.



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

Default DTSLookups Error - 12-01-2005 , 11:51 AM






Hello.

I am making a Transactional Replication with DTS transformation. We
tried to use Lookups in the DTS package and the result is "Variable is
undefined: 'DTSLookups'"

This is the code:
OPTION explicit
Function Main()
DTSDestination("FkClient") =
DTSLookups("SearchIdClient").Execute(DTSSource("Cu stomerId"))
Main = DTSTransformstat_OK
End Function

When I test the Lookup at design time it works correctly and returns the
correct value for the select clause.

If I do not use OPTION explicit then the error is: "Type Mismatch:
'DTSLookups'"

If I use JScript then the error is: "object expected"

Any idea?

Thanks.
Gabriel



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.