SQL Server – Enable Service Broker When Deploying Solution

deploymentservice-brokersql serverssdt

I'm having an issue deploying the latest build of a database solution after creating some service broker objects. I am thinking that it could be related to not having service broker enabled on the database, as it gets created as part of the build, then deployed straight away.

Where can I set the "ENABLE BROKER" option so it get's executed before deploy, but after the database is created by SQLPackage ?

Best Answer

In the latest SSDT version, the EnableBroker option is under Database Settings-->Miscellaneous-->Service broker options. I would expect SqlPackage to honor this specification.