Run script in the event of failover

  • Hi!

    I have set up mirroring with a witness on SQL 2005. I was wondering - is it possible to run a script file automatically when the witness detects that server 1 is down, and switches principal?

    I have some COM-services and a MSMQ-service that need to be started in the event of failure.

  • You can try to set up event notification to monitor

    Database_Mirroring_State_Change trace event. When it happens, run your script in the event handler.

     

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply