您好:
判断SQL如下。
if exists(select * from tempdb..sysobjects where id=object_id('tempdb..#临时表名'))drop table tempdb..##临时表名
或者
if object_id('tempdb..#临时表名') is not null Begin DROP TABLE #临时表名 End