dbTalk Databases Forums  

VBScript and G.Variables

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


Discuss VBScript and G.Variables in the microsoft.public.sqlserver.dts forum.



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

Default VBScript and G.Variables - 06-25-2004 , 09:19 AM






Greetings everyone,
I have a dts package with a dynamic properties task and the typical
assortment of sql queries, connections, etc... The dynamic properties
task exists to set the properties of various global variables which are
to be passed in from the command line.

Question, can I set one of the global variables properties equal to
the results of a vbscript function?

Thanks!



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

Default Re: VBScript and G.Variables - 06-25-2004 , 11:53 AM






Yes by assigning the value through an Active Script task not the Dynamic
Properties task.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Nexx" <nex (AT) nexx (DOT) com> wrote

Quote:
Greetings everyone,
I have a dts package with a dynamic properties task and the typical
assortment of sql queries, connections, etc... The dynamic properties
task exists to set the properties of various global variables which are
to be passed in from the command line.

Question, can I set one of the global variables properties equal to
the results of a vbscript function?

Thanks!





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

Default Re: VBScript and G.Variables - 06-25-2004 , 04:07 PM



Nexx:

Yes. For example:

DTSGlobalVariables("SampleVariable").Value = Results of function.

Hope this helps.

Paul

"Nexx" <nex (AT) nexx (DOT) com> wrote

Quote:
Greetings everyone,
I have a dts package with a dynamic properties task and the typical
assortment of sql queries, connections, etc... The dynamic properties
task exists to set the properties of various global variables which are
to be passed in from the command line.

Question, can I set one of the global variables properties equal to
the results of a vbscript function?

Thanks!

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.