SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Find and Replace VBScript within DTS Package

By philcart,

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.


Total article views: 564 | Views in the last 30 days: 2
Related Articles

Script to Find String in Database object

Script that searches every object in a database for a specific string.


Find a string in database objects

A very simple way to find a string in database objects and see where it is located in object definit...


Simple Object and String Search within Objects

This Simple script will help to do a Server wide search for an object name or usage of a String in O...


Object Search

Procedure to search any database (or a combination of databases, including all) for a specific strin...