Broker Queue Depth

Hi,

Could you please tell me whether you’ve had any experience with checking curdepth using SQL statement? If yes, could you please share the command and the broker version with me?

Thanks,
Roham