if not Exists(SELECT * FROM information_schema.tables where Table_name = 'BargehHoghoogh') begin create table BargehHoghoogh ( ID int Primary Key , Code int not null, Tarikh int not null, Taf_ID bigint references Tafsili(Code) not null, Dom_ID_Noe int references Domain(ID) not null, SaatAz smallint not null , SaatEla smallint not null , Sharh nvarchar(500), Mablagh decimal(19,4), Pro_ID int References OtherProperties(ID), Dom_ID_Vaziat int references Domain(ID) not null, CodeKarbar int References Karbar(Code) not null, TarikhSabt int not null, SaatSabt smallint not null ) end