if not Exists(SELECT * FROM information_schema.tables where Table_name = 'SalarySheet') begin create table dbo.SalarySheet ( 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, -- Tarikh int not null, Mat_ID bigint references Matter(ID) not null, Taf_ID bigint references Tafsili(ID) not null, Dom_ID_Noe int references Domain(ID) not null, --SaatAz smallint null , --SaatEla smallint null , Description nvarchar(1000) null, Price decimal(19,4) null, Pro_ID int References OtherProperties(ID) null, Dom_ID_Vaziat int references Domain(ID) not null ) end;