Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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)

Execute SQL-DMO Database method on all databases

By Roy Ashbrook,

This script allows you to specify a method and a server (or multiple servers.) It will then execute the method on every database on the server. With very minor tweaking you could have it search for the servers, then call the server db script with each one, or add another nesting to call tables or whatever other object you like. You could even switch up the eval statements a little and call a generic object/method caller. Tested on sql2k with just a few databases.

Total article views: 650 | Views in the last 30 days: 7
 
Related Articles
FORUM

Render method not returning any data

ReportExecution2005 web server render method

FORUM

Best Encryption method

Is it a good method of encryption?

FORUM

Simple value method help

How to return text contents to .value method?

FORUM

What is the best method of backing up SSAS 2008 databases and cubes on a server where SQL server is not installed and we just have SSAS installed?

What is the best method of backing up SSAS 2008 databases and cubes on a server where SQL server is ...

FORUM

What is the best method of backing up SSAS 2008 databases and cubes on a server where SQL server is not installed and we just have SSAS installed?

What is the best method of backing up SSAS 2008 databases and cubes on a server where SQL server is ...

Tags
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones