Hi i have a azure sql managed instance and when i execute the below query i get the error as
The operation cannot be performed on database "" 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.
Query :
alter database <dbname> set ENABLE_BROKER with ROLLBACK immediate
how do i solve this?
I tried the below
ALTER DATABASE [dbName] REMOVE SECONDARY ON SERVER [serverName]
but it gives me error as This feature is not supported through T-SQL on SQL Database Managed Instance.