Powershell script to run against many servers and send combine output as email
say wanted run select @@version against 3 sql instances ( sqla, sqlb , sqlc) .. want email shows combined output of these results follows
sqla sql 2005..
sqlb sql 2008,,
sqlc sql 2008...
what want not above output, template give me idea of how accomplish collecting results against multiple servers, appending content , send combined output in email. have seen few examples online on how send email, connect 1 server, collect results , send output. want running against many servers, collecting , sending 1 email combined results.
you can take @ sample http://sethusrinivasan.wordpress.com/2012/01/11/powershell-script-to-run-query-against-many-servers-and-send-combined-output-as-email/
thanks
sethu srinivasan [msft]
sql server
SQL Server > SQL Server Database Engine
Comments
Post a Comment