This script will find and replace specified text within all ActiveXScript tasks with a certain text string in the description. It was designed on SQL 2000, but I think it will run on SQL 7 as it doesn't reference any SQL 2000 specific properties.
It opens a package object and then loops through the steps collection looking for a specific string in the description. I use the step description because this is the main property that users have control over.
When it finds the string in the step description it opens a task object using the taskname associated with the step. Once the task object is opened it does a replace on the ActiveXScript property.
Questions and comments welcome.
Phill
2007-10-02 (first published: 2002-06-20)
15,451 reads