Respuesta propuesta Failover notification through SQL Agent

  • 12. března 2011 1:15
     
     

    Is it possible to setup a notification email from SQL agent whenever a failover occured?

    THanks

Všechny reakce

  • 8. července 2011 10:11
     
     
    Yes , But on diffferent Server .....
    Kuldeep
  • 9. srpna 2011 5:21
     
     Navržená odpověď

    Create a SQL Job which sends email alert when triggered.

    Then keep the schedule type as "Start Automatically when SQL Server agent starts".

    Now, whenever failover happens sql agent starts automatically which triggers the email alert.

     

    Hope this helps.

     


    - Kerobin
    • Navržen jako odpověď KEROBIN 17. srpna 2011 18:23
    •  
  • 21. listopadu 2011 17:57
     
     
    This is the correct approach. I did this a few years ago, but do not have the code. In essence schedule the stored proc to run on startup, but create a stored proc that will read the machine name from the registry, that way you can know exactly which machine is the active node. I would post the code if I could find it, but the description here can get you what you would need.