The issue is this: I have a wrapper stored procedure that contains a bunch of other stored procedures. It looks something like this:
Wrapper:
exec procedure1
exec procedure2
exec procedure3
Each of the procedures creates a temp table that are used within it. The issue is that I run out of tempDB
space every time I execute the wrapper.
However, while executing each individual stored procedure, it works fine.
My understanding is that the temp tables are dropped after the stored procedure is done. So why is my tempDB
getting full?
edit:
This is the error i am getting.
1101 : Could not allocate a new page for database 'TEMPDB' because of insufficient disk space in filegroup 'DEFAULT'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.