dbTalk Databases Forums  

ActiveX Scripts

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


Discuss ActiveX Scripts in the microsoft.public.sqlserver.dts forum.



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

Default ActiveX Scripts - 06-22-2005 , 11:12 AM






I am new to scripting and ActiveX Scripts in DTS
I am getting a syntax error on line 11 and it looks like the example from
MSDN 'Using ActiveX Scripts in DTS'. Can anyone tell me why? Here is my
script:

Function Main()
Pass = DTSSource("PassID")
Select Case Pass
Case "6"
DTSDestination("TripType")=1
Case "7"
DTSDestination("TripType")=2
Case Else
DTSDestination("TripType")=<null>
End Select
Main = DTSTransformStat_OK
End Function




Reply With Quote
  #2  
Old   
Francesco Anti
 
Posts: n/a

Default Re: ActiveX Scripts - 06-22-2005 , 11:28 AM






Try replacing <null> with null.

Francesco Anti

"JD" <JD (AT) idfg (DOT) idaho.gov> wrote

Quote:
I am new to scripting and ActiveX Scripts in DTS
I am getting a syntax error on line 11 and it looks like the example from
MSDN 'Using ActiveX Scripts in DTS'. Can anyone tell me why? Here is my
script:

Function Main()
Pass = DTSSource("PassID")
Select Case Pass
Case "6"
DTSDestination("TripType")=1
Case "7"
DTSDestination("TripType")=2
Case Else
DTSDestination("TripType")=<null
End Select
Main = DTSTransformStat_OK
End Function






Reply With Quote
  #3  
Old   
JD
 
Posts: n/a

Default Re: ActiveX Scripts - 06-22-2005 , 11:45 AM



Thanks

jd

"Francesco Anti" <fanti_ (AT) _sicosbt (DOT) it> wrote

Quote:
Try replacing <null> with null.

Francesco Anti

"JD" <JD (AT) idfg (DOT) idaho.gov> wrote in message
news:%23Xye1T0dFHA.3040 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
I am new to scripting and ActiveX Scripts in DTS
I am getting a syntax error on line 11 and it looks like the example from
MSDN 'Using ActiveX Scripts in DTS'. Can anyone tell me why? Here is my
script:

Function Main()
Pass = DTSSource("PassID")
Select Case Pass
Case "6"
DTSDestination("TripType")=1
Case "7"
DTSDestination("TripType")=2
Case Else
DTSDestination("TripType")=<null
End Select
Main = DTSTransformStat_OK
End Function








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.