dbTalk Databases Forums  

passing DTS global variables into VB Script?

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


Discuss passing DTS global variables into VB Script? in the microsoft.public.sqlserver.dts forum.



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

Default passing DTS global variables into VB Script? - 05-17-2005 , 03:31 PM






I have some Global Variables i've defined within a DTS package that I want to
pass into an ActiveX (VB Script) task within the same package. Anybody know
how to do this?

Thanks,
Tom

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

Default Re: passing DTS global variables into VB Script? - 05-17-2005 , 03:47 PM






You can just reference those global variables in the script itself using
syntax like this

DTSGlobalVariables("My Variable Name").Value





"Tom P" <TomP (AT) discussions (DOT) microsoft.com> wrote


Quote:
I have some Global Variables i've defined within a DTS package that I want to
pass into an ActiveX (VB Script) task within the same package. Anybody know
how to do this?

Thanks,
Tom


Reply With Quote
  #3  
Old   
Tom P
 
Posts: n/a

Default Re: passing DTS global variables into VB Script? - 05-17-2005 , 04:06 PM



Thanks for the quick response Allan. It worked fine that way.

"Allan Mitchell" wrote:

Quote:
You can just reference those global variables in the script itself using
syntax like this

DTSGlobalVariables("My Variable Name").Value





"Tom P" <TomP (AT) discussions (DOT) microsoft.com> wrote in message
news:TomP (AT) discussions (DOT) microsoft.com:

I have some Global Variables i've defined within a DTS package that I want to
pass into an ActiveX (VB Script) task within the same package. Anybody know
how to do this?

Thanks,
Tom



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.