Stairway to T-SQL: Beyond The Basics Level 5: Storing Data in Temporary Tables
There are times when retrieving data for complex business requirement requires you to temporarily store one or more results sets for a short period of time. Typically these temporary tables are stored in the scope of the current connection, but they may also need to be available across multiple connections.


