Judging whether object existed in the database, if it does, delete it.
--If user table existed, delete it.if exists (select * from sysobjects where id=object_id(Ndbo.tblHeadCountForecast_Upload) and OBJECTPROPERTY(id,NIsUserTable)=1) drop table tblHeadCountFore
复制链接