/****** Object:  Table dbo.b    Script Date: 2003-3-25 14:15:02 ******/
if exists (select * from sysobjects where id = object_id('table1') and sysstat & 0xf = 3)
drop table table1
GO呵呵!!

解决方案 »

  1.   

    if object_id('YourDataBase.dbo.Table1') is not null
      drop table Table1
      

  2.   

    if object_id('YourDataBase..Table1') is not null
      drop table Table1
      

  3.   

    最好:if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[表名]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    drop table [dbo].[表名]
    GO
      

  4.   

    if object_id(Table1Name') is not null
      drop table Table1
      

  5.   

    if exists (select * from dbo.sysobjects where id = object_id(N'[authors]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    drop table [authors]
    GO
    如上述语句就是以此方法产生!!!
      

  6.   

    哈哈  今天被那几个update问题搞得偶也晕了