if not Exists(SELECT * FROM information_schema.tables where Table_name = 'PrescriptionFormulaPattern') begin create table PrescriptionFormulaPattern ( ID int primary key, Pro_ID_Pattern int references otherProperties(id) not null, -- نظام حکمی PF_ID int references PrescriptionFormula(id) not null, -- فرمول Kar_ID_Creator int References Karbar(ID) not null, TarikhSabt int not null, SaatSabt int not null ) end