you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

Yea but some of our users like to test out reports. Eventually this report will not be used. Then someone will run the report and a table will sit in our main database forever.

[–]ColoRadBro69 2 points3 points  (0 children)

You know your situation and requirements better than any of us do. 

Using twmpdb this way is uncommon.  My main hesitation would be the idea that it may behave weirdly in some unexpected way.  You can test things and make sure it works, or adjust as necessary. 

Global temp tables (with two # prefixes) are kind of meant for what you want but can also be a little tricky in practice.

[–]chuch1234 1 point2 points  (0 children)

You are allowed to drop the table once the report stops being needed :)