Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Global variable persistence issue

Author  Topic 

tutufool
Starting Member

14 Posts

Posted - 2006-09-26 : 06:28:58
In the DTS package Designer, I update a global variable in my ActiveX script like:
DTSGlobalVariables("lastRunDate").Value = now()

the "lastRunDate" will be updated every time I run the DTS in desinger, but if I quit designer and goto the package list page, right click the package and execute it, the variable will not be updated, how can I make the variable persistent?

thanks

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-09-26 : 09:43:05
You would have to save the DTS package after changing the global value.

You would be better off storing this information in a table. It't a lot easier to update.



CODO ERGO SUM
Go to Top of Page
   

- Advertisement -