if exists (select * from sysobjects where id = OBJECT_ID('[table1]') and OBJECTPROPERTY(id, 'IsUserTable') = 1) DROP TABLE [table1] if exists (select * from sysobjects where id = if exists (select * from sysobjects where id = OBJECT_ID('[table1]') and OBJECTPROPERTY(id, 'IsUserTable') = 1) DROP TABLE [table1] if exists (select * from sysobjects where id =