dbTalk Databases Forums  

Service Broker locking database

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss Service Broker locking database in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Toby
 
Posts: n/a

Default Service Broker locking database - 02-24-2010 , 03:37 PM






Sorry didn't know where to put this question. We have implemented service
broker on a database. The question I have is that has anyone come across an
issue when using the Service Broker that after a while the database gets
"locked", in the sense when I try to look at the tables when something is
being processed from Service Broker. I get this this dialog box "Lock
request time out period exceeded"

Any one have any ideas what is causing this and how to fix it
Thanks in advance

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Service Broker locking database - 02-25-2010 , 02:10 AM






Toby (Toby (AT) discussions (DOT) microsoft.com) writes:
Quote:
Sorry didn't know where to put this question. We have implemented
service broker on a database. The question I have is that has anyone
come across an issue when using the Service Broker that after a while
the database gets "locked", in the sense when I try to look at the
tables when something is being processed from Service Broker. I get
this this dialog box "Lock request time out period exceeded"
How do you look at the tables? The message you relate comes from a lock
timeout which is controlled by SET LOCK_TIMEOUT, and which by defalt is -1,
which means wait forever.

It is highly unlikely that Service Broker itself is the culprit, but it
is of course not unlikely that your activation procedures causes blocking.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
  #3  
Old   
Dan Guzman
 
Posts: n/a

Default Re: Service Broker locking database - 02-28-2010 , 09:50 AM



Quote:
Any one have any ideas what is causing this and how to fix it
I agree with with Erland's diagnosis that SB activated procedures are the
likely culprit. Review the execution plans for query and index tuning
opportunities.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.