TSQL - Check if temp table exists, then drop it

Post date: Jul 6, 2011 6:26:02 AM

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