I ran the command ALTER DATABASE [Banco] SET ENABLE_BROKER;
but it has been running for more than 20 minutes and counting. Would you have a faster way to do it?
I ran the command ALTER DATABASE [Banco] SET ENABLE_BROKER;
but it has been running for more than 20 minutes and counting. Would you have a faster way to do it?
Yes, there is a faster way:
ALTER DATABASE [Banco] SET ENABLE_BROKER WITH ROLLBACK IMMEDIATE;
SQL Server does not allow the command to run until all outstanding transactions have ended. With the above command, all pending transactions are canceled and the ENABLE_BROKER
service is activated quickly.