Modifying Service Broker Queue's Activated Stored Procedure

VDT-7677 121 Reputation points
2021-07-28T20:48:16.783+00:00

Hi,

Running SQL Server 2017. We have an activated stored procedure (which is encrypted) attached to a service broker queue to process messages. Everything is working correctly.

Now, we want to modify the stored procedure which is used by the queue. As the stored procedure in question is encrypted we are unable to ALTER, we instead need to DROP then CREATE. In order to do this, what steps do we have to take? Is it as simple as turning the queue off, re-creating the procedure, then turning the queue back on while referencing the newly-created procedure in the WITH ACTIVATION clause?

Thanks!

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,817 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 111.4K Reputation points MVP
    2021-07-28T21:02:31.27+00:00

    That should do it, I think.

    But it is always a good idea to do this in a test environment before you try this in production.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.