Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Service Broker / May 2008

Tip: Looking for answers? Try searching our database.

SET ENABLE_BROKER taking forever

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yashgt - 13 May 2008 16:37 GMT
I am trying to run the service broker samples on teh AdventureWorks DB
on SQL Server Developer edition on Win XP, version 9.00.2050.00.

The statement ALTER DATABASE AdventureWorks SET ENABLE_BROKER ; takes
forever. Any clues as to what might be the cause?

Thanks,
Yash
Adam Machanic - 13 May 2008 18:46 GMT
Probably just need to kick other sessions out.

USE AdventureWorks
GO

ALTER DATABASE AdventureWorks SET SINGLE_USER WITH ROLLBACK IMMEDIATE
ALTER DATABASE AdventureWorks SET ENABLE_BROKER
ALTER DATABASE AdventureWorks SET MULTI_USER
GO

Signature

Adam Machanic
SQL Server MVP - http://sqlblog.com

Author, "Expert SQL Server 2005 Development"
http://www.apress.com/book/bookDisplay.html?bID=10220

>I am trying to run the service broker samples on teh AdventureWorks DB
> on SQL Server Developer edition on Win XP, version 9.00.2050.00.
[quoted text clipped - 4 lines]
> Thanks,
> Yash
Aaron Bertrand [SQL Server MVP] - 14 May 2008 04:13 GMT
You need exclusive access to the database in order to enable the broker.

Adam showed you the syntax to do so.  I would schedule this for off-hours to
minimize the chance of interrupting normal activity (e.g. End users).

A



On 5/13/08 11:37 AM, in article
f5884f4c-9a97-41a9-8ed5-0142c501faac@a9g2000prl.googlegroups.com, "Yashgt"
<yashgt@gmail.com> wrote:

> I am trying to run the service broker samples on teh AdventureWorks DB
> on SQL Server Developer edition on Win XP, version 9.00.2050.00.
[quoted text clipped - 4 lines]
> Thanks,
> Yash
Yashgt - 14 May 2008 05:18 GMT
Thanks. That worked.

On May 14, 8:13 am, "Aaron Bertrand [SQL Server MVP]"
<ten....@dnartreb.noraa> wrote:
> You need exclusive access to the database in order to enable the broker.
>
[quoted text clipped - 15 lines]
> > Thanks,
> > Yash
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.