Temporary tables are tables created in the tempdb database. These tables are session-specific tables, namely: even though they are backed by physical disk and logged into the transaction log, the tables are automatically dropped when the session is closed. As a result, temporary tables are usually not written on disk, but only saved in the procedure cache memory.