if exists (select name from syscolumns where name='cercode' and id=object_id('t_cert_detail')) alter table t_cert_detail alter column cercode varchar(100) not null go