dbTalk Databases Forums  

DTS Lookup for returning multiple columns

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


Discuss DTS Lookup for returning multiple columns in the microsoft.public.sqlserver.dts forum.



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

Default DTS Lookup for returning multiple columns - 06-12-2006 , 05:19 PM






Hi
The DTS Task fails when trying to get multiple columns
The Task successfully works for single column

Here's the LookupQuery from Oracle

Select szname, szdescription
Quote:
From X_Network
Where Soundex(sznetwork) = Soundex(?)
--------------------------------------------------------------

Here 's the ActiveX script

'************************************************* *********************
' Visual Basic Transformation Script
'************************************************* ***********************

' Copy each source column to the destination column
OptionExplicit
Function Main()
Dim networkinfo

DTSGlobalVariables("Name").Value = DTSSource("Name")

networkinfo =
DTSLookups("NetworkLookup").Execute(DTSGlobalVaria bles("Name").Value)

DTSDestination("LookupNetworkCode") = networkinfo(0)
DTSDestination("LookupNetworkDescription") =
networkinfo(1)

Main = DTSTransformStat_OK
End Function

------------------------------------------------------------------------------------------


Any help would be appreciated.

Thanx
Oichi



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.