Service Broker not working on SQL 2019 High Availability Replica

  • I have Service Broker setup in SQL 2019 Always On Availability group. Both the source and the target databases are in separate AG’s. Messages transfer with no problem while both source and target are on the primary servers. The out routes are setup using the AG listener. When I fail over the target database to the secondary replica messages fail and the error I find in the profiler trace is ‘An exception occurred while enqueueing a message in the target queue. Error: 15581, State: 7. Please create a master key in the database or open the master key in the session before performing this operation’. Is it possible to have both the primary and the secondary encrypted with the service master key of their respective servers?

  • Check:

    I haven't tested SSB with AGs myself. #blush# ( because we do not use it in that way )




    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

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

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