Make sure no-one is using the database (lick out all users). This includes SQL Server Agent.

Signature
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
> My command never ends :
>
[quoted text clipped - 7 lines]
>
> Scan le Gentil
Chris Leiter - 24 Apr 2006 15:40 GMT
That includes yourself. Make sure you don't have another connection open to
the same database. That's bitten me a couple of times.
-Chris
> Make sure no-one is using the database (lick out all users). This includes
> SQL Server Agent.
[quoted text clipped - 10 lines]
>>
>> Scan le Gentil
Roger Wolter[MSFT] - 24 Apr 2006 15:53 GMT
http://blogs.msdn.com/remusrusanu/archive/2006/01/30/519685.aspx

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
> That includes yourself. Make sure you don't have another connection open
> to the same database. That's bitten me a couple of times.
[quoted text clipped - 15 lines]
>>>
>>> Scan le Gentil
manishkaushik - 08 Jan 2009 09:21 GMT
Try this this, worked for me
ALTER DATABASE [msdb] SET ENABLE_BROKER WITH ROLLBACK IMMEDIATE
thanks
Manish