use tempdb
if exists (select * from sysobjects where sysobjects.id=object_id)
('#temp'))
drop table #temp