Skip to main content
2 of 2
deleted 1 character in body; edited tags

When tempdb allocations are released?

In a Service Broker queue, when one message is proceed over time, we are executing a stored procedure which is performing some heavy operations using temporary tables.

I guess that the sp_WhoIsActive is showing summarized values for tempdb allocations and CPU usage, as the queue is using one session.

The question is, are the allocations released when the current stored procedure completes?

gotqn
  • 4.3k
  • 11
  • 51
  • 89