OK, so Sybase (12.5.4) will let me do the following to DROP a table if it already exists:
IF EXISTS ( SELECT 1 FROM sysobjects WHERE name = \'a_t
Try using Begin and End.
IF NOT EXISTS ( SELECT Count(1) FROM sysobjects WHERE name = 'a_table' AND type = 'U' ) BEGIN CREATE TABLE a_table ( col1 int not null, col2 int null ) END GO