uncleroydee
Technical User
Can anyone tell me the syntax for a Select Case statement in a VB data transformation script within a Data Transformation Service package? I've tried many different iterations, VB and SQL derivatives, to no avail. My latest iteration is this:
DTSDestination("Tst_Prfrm_YN"
= SELECT CASE(DTSSource("Testconducted?"
when N then 0
when Y then 1
ELSE 0
END )
As an aside, the following works for a "Left" function in the same script, and it doesn't appear to be standard VBScript syntax:
Function Main()
DTSDestination("C_NBR_Agcy"
= LEFT(DTSSource("Contract Number"
,6)
Thanks,
Roy
DTSDestination("Tst_Prfrm_YN"
when N then 0
when Y then 1
ELSE 0
END )
As an aside, the following works for a "Left" function in the same script, and it doesn't appear to be standard VBScript syntax:
Function Main()
DTSDestination("C_NBR_Agcy"
Thanks,
Roy