dbTalk Databases Forums  

Reset a Global Variable??

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


Discuss Reset a Global Variable?? in the microsoft.public.sqlserver.dts forum.



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

Default Reset a Global Variable?? - 12-09-2004 , 01:42 PM






How and where do I reset a global variable? I have a global Variable that
needs to be reset to 0 everytime the Package executes. Currently it does not
reset to 0.

Thanks in advance

Marinus



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

Default Re: Reset a Global Variable?? - 12-09-2004 , 01:48 PM






The variable will be reset at runtime to it's design time value. The only way to change it would be to change it at runtime then
resave the package.

You could of course have a task at the very start of the package that says

DTSGlobalVariables("Variable Name").Value = 0



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Marinus Willemstijn" <willemma (AT) telkom (DOT) co.za> wrote

Quote:
How and where do I reset a global variable? I have a global Variable that
needs to be reset to 0 everytime the Package executes. Currently it does not
reset to 0.

Thanks in advance

Marinus





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.