Check to see if a temp table exists. If so, drop it.
IF OBJECT_ID('tempdb..#tempTableName') IS NOT NULL DROP TABLE #tempTableName
Check to see if a temp table exists. If so, drop it.
IF OBJECT_ID('tempdb..#tempTableName') IS NOT NULL DROP TABLE #tempTableName