Deleting a Temporary Table in MSSQL
The correct way to delete a temporary table: IF OBJECT_ID('tempdb.dbo.#tmp', 'U') IS NOT NULL DROP TABLE #tmp;
1 total
The correct way to delete a temporary table: IF OBJECT_ID('tempdb.dbo.#tmp', 'U') IS NOT NULL DROP TABLE #tmp;