Forum Discussion

itcops1979's avatar
itcops1979
Copper Contributor
May 01, 2021

Can we create multiple database in SQL server standard always on

Can we create multiple database in SQL server standard always on ?

5 Replies

  • mcdasa's avatar
    mcdasa
    Brass Contributor
    Yes, of course you can.
    but one thing you need to remember is that you can only make 1 database in 1 ag group
    you n databases need n ag group. additionally you need to implement trigger these ag groups automatically when failover event occured.
    • itcops1979's avatar
      itcops1979
      Copper Contributor

      wWhat is the means of triggers, is it like that for multiple db i have to create multi AG then i have to stablish trigger between all AG incase of failovermcdasa 

      • mcdasa's avatar
        mcdasa
        Brass Contributor
        your sql-server could do failover automatically for one ag group.
        41074 is an event id of which failover event is occured in sql server.
        So you make agent job and add alert(trigger) for eventid 41074
        also add "ALTER AVAILABILITY GROUP [your_other_ag_group] FAILOVER'" for that job.

        i hope this will help you.
        you can google it with following keyword "41074","sql server","ag", "failover"

Resources