How do I get the size of a Service Broker Queue quickly when the table is >500k rows?

Posted by Gabe Brown on Stack Overflow See other posts from Stack Overflow or by Gabe Brown
Published on 2010-05-11T00:18:49Z Indexed on 2010/05/11 0:24 UTC
Read the original article Hit count: 539

I'm trying to determine the total size of a Service Broker Queue and transmission queue when the queue is very large. The problem is traditional querys like the ones below don't work since it's not a table. Any ideas?

EXEC sp_spaceused 'sys.transmission_queue'
SELECT rows FROM sysindexes WHERE id = OBJECT_ID('ConfigMgrDrsQueue') AND indid < 2  

© Stack Overflow or respective owner

Related posts about servicebroker

Related posts about service-broker