if not Exists(SELECT * FROM information_schema.tables where Table_name = 'KarbarPermission') begin create table KarbarPermission ( ID int primary key, Dom_ID_RowType int references domain(ID) not null, Kar_ID int references Karbar(ID) not null, Pro_ID int references Otherproperties (ID) null, -- واحدهای مالی مجاز Kar_ID_View int references Karbar(ID) null, -- مشاهده مجاز ثبت اطلاعات کاربران Kar_ID_Creator int references Karbar(ID) not null, TarikhSabt int not null, SaatSabt int not null ) end