临时表在哪里存储在sql server中?

Sha*_*pta 17 sql sql-server-2005 temp-tables

临时表存储在数据库中的哪个位置?如果临时表已经存在,我想删除它.我可以通过查询信息模式来为安全表执行此操作,但我不知道临时表的存储位置.

Gio*_*rgi 18

Temporary tables are stored in tempdb Database. There are various ways to check if a temp table exists outlined here: Check If Temporary Table Exists.


小智 9

临时表存储在tempdb数据库中,该数据库存在于SystemDatabase或SystemDatabase - > tempdb - > Temporary Tables中