IF (Not EXISTS(select * from sys.syscolumn as C, sys.systable as T where LCase(T.table_name) = LCase('Countries') and LCase(C.column_name) = LCase('Code') and C.table_id=T.table_id)) THEN alter table Countries add Code varchar(5) END IF GO