I have a query:
SELECT NAME FROM SYSDATABASES
where name like 'PSCPROD_%'
ORDER BY NAME
For each line/record of what this query returns, I would like to perform a DUMP DATABASE operation.
How can this be accomplished? I can do it in Perl with no problem, but I would prefer to use either T-SQL, Visual Basic, or Javascript so that I may use the SQLAgent to execute the script automatically.
SELECT NAME FROM SYSDATABASES
where name like 'PSCPROD_%'
ORDER BY NAME
For each line/record of what this query returns, I would like to perform a DUMP DATABASE operation.
How can this be accomplished? I can do it in Perl with no problem, but I would prefer to use either T-SQL, Visual Basic, or Javascript so that I may use the SQLAgent to execute the script automatically.