dbTalk Databases Forums  

Re: Global Variables In DTS Package

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


Discuss Re: Global Variables In DTS Package in the microsoft.public.sqlserver.dts forum.



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

Default Re: Global Variables In DTS Package - 07-10-2003 , 03:04 PM






In article <00ea01c346f4$fc23e040$a101280a (AT) phx (DOT) gbl>, Ken
<kackimenko (AT) ama (DOT) ab.ca> writes
Quote:
I have some Global Variables in a DTS Package that are
updated inside the package. When I run the package
manually, the variables update the way I expect them to.
When I run the same DTS package via a scheduled job, the
job runs successfully, however, the variables do not
appear to have been updated. Anyone no why? I need to
save dates in these global variables so that when the job
runs month to month, these dates can be changed and made
available the following month when the job runs again.

Thanks for your help.
When you run the package the variable may change during run-time but
unless you then save the package again they will not be persisted. When
you run it manually after execution the values from run-time are still
there, but if you close the package without saving they will not be
persisted either.

The thing to do is to use a table to keep track of these values. You can
use the Exec SQL Task to read and write the values using the parameter
options of the task.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com




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.