Run a Stand-Alone Script
Some situations require a script to be used exclusively without defining a data source. The Query Properties window provides the ability to add and run a script.
Follow the steps to add a script.
Step 1 – Go to the job's Configure node and select Queries.
Step 2 – Click Create Query to open the Query Properties window.
Step 3 – Select the Data Source tab, and select SCRIPT in the Data Collector drop-down menu.
Step 4 – Click Configure or the Browse Data Source button to open the VBScript Editor page and add the script to run.
See the VBScript Editor topic for additional information.