if not Exists(SELECT * FROM information_schema.tables where Table_name = 'SalaryReceipt') begin create table SalaryReceipt ( ID int Primary Key , Code int not null, FC_ID int references Finance_Cycle(ID) not null, Pro_ID_VahedMali int references OtherProperties(ID) not null, Dom_ID_Month int references domain(ID) not null, ST_ID int references SalaryTimecard(ID) null, Mat_ID bigint references Matter(ID) not null, Taf_ID bigint references tafsili(ID) not null, Taf_ID_SalaryCost bigint references Tafsili(ID) not null, -- هزینه حقوق Taf_ID_Tax bigint references Tafsili(ID) null, -- دارایی Taf_ID_Insurance bigint references Tafsili(ID) null -- بیمه ) end;