Search code examples
sql-servertemporary-files

Where are temp tables in SQL Server


In SAS, temp tables stored in WORK, which locates at the bottom of library list.

In SQL Server, create a temp table like #t1 in tempdb. But in the databases list, I cannot find the tempdb.

The reason why I want to "see" it is I want to know its variables' data type and other related information.


Solution

  • tempdb

    You have to expand 'System Databases' to see it.