dbTalk Databases Forums  

Global Variables not retaining values in DTS package

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


Discuss Global Variables not retaining values in DTS package in the microsoft.public.sqlserver.dts forum.



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

Default Global Variables not retaining values in DTS package - 09-14-2004 , 11:38 AM






We have a big DTS package that runs nightly via SQLAgent and uses several
global variables. The programmer changes them via script throughout the
process and assumed that the changes would be retained the next time the
package was executed. Of course the programmer has now left the firm. In
investigating an issue, it appears that the changed values are not making
their way back to the package.

So my question is, should the variable values be retained indicating that we
have some failure that we need to address, or is this normal behaviour
indicating that we chould create a table for values we want to be retained
from run to run?

Thanks in advance.




Reply With Quote
  #2  
Old   
Narayana Vyas Kondreddi
 
Posts: n/a

Default Re: Global Variables not retaining values in DTS package - 09-14-2004 , 12:17 PM






What you are seeing is the correct behavior. Global variable changes made at
run time will not persist. You should think about saving them somewhere if
you need them again.
--
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/


"Mike Singer" <nospam_mike.singer (AT) ehr (DOT) com> wrote

Quote:
We have a big DTS package that runs nightly via SQLAgent and uses several
global variables. The programmer changes them via script throughout the
process and assumed that the changes would be retained the next time the
package was executed. Of course the programmer has now left the firm. In
investigating an issue, it appears that the changed values are not making
their way back to the package.

So my question is, should the variable values be retained indicating that
we
have some failure that we need to address, or is this normal behaviour
indicating that we chould create a table for values we want to be retained
from run to run?

Thanks in advance.






Reply With Quote
  #3  
Old   
Mike Singer
 
Posts: n/a

Default Re: Global Variables not retaining values in DTS package - 09-14-2004 , 01:29 PM



Thanks for getting back so fast.

"Narayana Vyas Kondreddi" <answer_me (AT) hotmail (DOT) com> wrote

Quote:
What you are seeing is the correct behavior. Global variable changes made
at
run time will not persist. You should think about saving them somewhere if
you need them again.
--
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/


"Mike Singer" <nospam_mike.singer (AT) ehr (DOT) com> wrote in message
news:eqpaKlnmEHA.1152 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
We have a big DTS package that runs nightly via SQLAgent and uses several
global variables. The programmer changes them via script throughout the
process and assumed that the changes would be retained the next time the
package was executed. Of course the programmer has now left the firm. In
investigating an issue, it appears that the changed values are not making
their way back to the package.

So my question is, should the variable values be retained indicating that
we
have some failure that we need to address, or is this normal behaviour
indicating that we chould create a table for values we want to be
retained
from run to run?

Thanks in advance.








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.