I am trying to enable service broker with rollback immediate, per this post: Enable SQL Server Broker taking too long time
here's the query:
alter database fooDB set enable_broker with rollback immediate;
However it's giving me the below syntax errors in SQL Server 2012:
Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'with'.
Msg 319, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near 'immediate'.
How can I do this in SQL Sever 2012?