mutley1
MIS
- Jul 24, 2003
- 909
Hi all,
I'm looking to automate a check on all servers (30+) for all databases to check that the status of all is 'online'. My first thoughts are to create an sp that:
1.creates a temp table
2.runs through each db using databasepropertyex ('mydb', 'status')
3.inserts results into temp table
4.quick bit of code to use xpsendmail if anything other than status of online
5.drop temp table
Anyone think of a simpler approach - remember, they key is i'm trying to automate the process for 30 servers.....
Thanks for any advice,
M.
I'm looking to automate a check on all servers (30+) for all databases to check that the status of all is 'online'. My first thoughts are to create an sp that:
1.creates a temp table
2.runs through each db using databasepropertyex ('mydb', 'status')
3.inserts results into temp table
4.quick bit of code to use xpsendmail if anything other than status of online
5.drop temp table
Anyone think of a simpler approach - remember, they key is i'm trying to automate the process for 30 servers.....
Thanks for any advice,
M.