IF EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'DaryaftPardakht' AND COLUMN_NAME = 'CodeBargeh') begin print 'Ok' end else begin alter table DaryaftPardakht add CodeBargeh int not null default 0 end