-->

Jun 23, 2014

Local Temp Table Vs Global Temp Table

Local Temp Table Vs Global Temp Table
S.NoParticularsLocal Temp TableGlobal Temp Table
1AvailableSQL Server session or connection (means single user).all SQL Server sessions or connections (means all the user).
2DeletedThese are automatically deleted when the session that created the tables has been closed.These can be created by any SQL Server connection user and these are automatically deleted when all the SQL Server connections have been closed.
3Stared with signLocal temporary table name is stared with single hash ("#") sign.Global temporary table name is stared with double hash ("##") sign.