views:

69

answers:

1

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  
+2  A: 

Remus explains explains how to do it in his blog. Basically you need to query the row count of the underlying b-tree.

Pawel Marciniak