sql2000
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[table1]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[table1]
GO
declare i int;
begin
select 1 into i from user_tables where table_name = 'TABLE1';
if i = 1 then
execute immediate 'drop table '||'table1';
end if;
end;