Quantcast
Channel: SQL Service Broker forum
Viewing all articles
Browse latest Browse all 461

How to ignore service broker option for database deployment on always on server

$
0
0

We have setup service broker on our always on database. However, when we are trying to deploy database (sqlproj), deployment script tries to disable broker and fails, as database is part of always on group. When I checked where Disable broker call is being made from, found that the setting is in sqlproj properties. I don’t find any option to ignore broker settings. How can I ignore service broker options in my project, so it never tries to alter whatever broker settings are present on the database?

 below is the error that I am receiving during deployment:

Error SQL72014: .Net SqlClient Data Provider: Msg 1468, Level 16, State 1, Line 5 The operation cannot be performed on database "DBName" because it is involved in a database mirroring session or an availability group. Some operations are not allowed on a database that is participating in a database mirroring session or in an availability group.

Error SQL72045: Script execution error.  The executed script:

IF EXISTS (SELECT 1

FROM   [master].[dbo].[sysdatabases]

WHERE  [name] = N'$(DatabaseName)')

   BEGIN

ALTER DATABASE [$(DatabaseName)]

SET DISABLE_BROKER

WITH ROLLBACK IMMEDIATE;

   END



Viewing all articles
Browse latest Browse all 461

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>