if Exists(SELECT * FROM information_schema.tables where Table_name = 'TakhsisAmvalBePersenel') begin print 'true' end else begin create table TakhsisAmvalBePersenel ( Code int primary Key, CodeBargeh int not null, Noe smallint not null, Tarikh int not null, CodeAmval bigint foreign key references Tafsili(code) not null, CodeTafsili bigint foreign key references Tafsili(code) not null, Sharh nvarchar(500), Vaziat smallint not null, CodeKarbar int references Karbar(Code ) not null, TarikhSabt int not null, SaatSabt smallint not null ) end