Mega Code Archive

 
Categories / MSSQL Tutorial / System Settings
 

Code that tests for the existence of a temporary table

IF OBJECT_ID('tempdb..#AllUserTables') IS NOT NULL     DROP TABLE #AllUserTables