if (select count(*) from syscolumn where column_name='DateDanEvent' and table_id=(select table_id from systable where table_name='VaucherInvoices')) =0 then Alter table VaucherInvoices Add DateDanEvent date end if; GO COMMENT ON COLUMN VaucherInvoices.DateDanEvent is 'Data na danachno sabitie' GO if (select count(*) from syscolumn where column_name='DateDanEvent' and table_id=(select table_id from systable where table_name='Proform')) =0 then Alter table Proform Add DateDanEvent date end if; GO COMMENT ON COLUMN Proform.DateDanEvent is 'Data na danachno sabitie' GO if (select count(*) from syscolumn where column_name='DateDanEvent' and table_id=(select table_id from systable where table_name='Invoices')) =0 then Alter table Invoices Add DateDanEvent date end if; GO COMMENT ON COLUMN Invoices.DateDanEvent is 'Data na danachno sabitie'