July 17, 2008 at 12:12 pm
I can use this to enable or disable this alert:
USE msdb ;
GO
EXEC dbo.sp_update_alert
@name = N'Severity 20 Error',
@enabled = 1 ;
GO
But, I need to do this on about 8 instances on the server and some instances on our test server.
How can I write a script to connect to the other instances or is there another recommendation.
Need to do this about once a month before and after our security scans. thanks
July 17, 2008 at 3:07 pm
Thanks.. I was looking at linked servers as well. What I just did was create a bat file with several sqlcmd statements and that did the trick.
thanks 🙂
July 17, 2008 at 5:04 pm
Keith Knox (7/17/2008)
Thanks.. I was looking at linked servers as well. What I just did was create a bat file with several sqlcmd statements and that did the trick.thanks 🙂
Another option would be to use Powershell and SMO.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply