Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enable Service Broker for MSDB for mail won't complete

Status
Not open for further replies.

RRinTetons

IS-IT--Management
Jul 4, 2001
333
US
SQL Server 2008 R2 64-bit

I need to enable Service Broker in MSDB in order to get Database Mail working. When I try it through SSMS as part of configuring Database Mail SSMS freezes and has to be forced to quit. When I try it via t-sql with

Code:
use master
go
ALTER DATABASE [msdb] SET ENABLE_BROKER;
go

it executes but doesn't complete in as long as 8 hours. I can cancel query execution and everything seems normal.

How can I start to determine what is preventing this from working?


-
Richard Ray
Jackson Hole Mountain Resort
 
From the Books OnLine (BOL):
Enabling SQL Server Service Broker in any database require a database lock. To enable Service Broker in the msdb database, first stop SQL Server Agent. Then, Service Broker can obtain the necessary lock.
I hope that helps...

-SQLBill


The following is part of my signature block and is only intended to be informational.
Posting advice: FAQ481-4875
 
Grump. I misread that. I restarted Agent instead of leaving it off...

Thanks!

-
Richard Ray
Jackson Hole Mountain Resort
 
OK, new error:

Code:
Msg 9776, Level 16, State 1, Line 1
Cannot enable the Service Broker in database "msdb" because the Service Broker GUID in the database (C41CF7A0-7DB3-4875-9721-778142BBE86E) does not match the one in sys.databases (5FA86F33-4927-4453-A170-66EA4E671E84).
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.

-
Richard Ray
Jackson Hole Mountain Resort
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top