if Exists(SELECT * FROM information_schema.tables where Table_name = 'YadAvari') begin print 'true' end else begin create Table YadAvari ( Code int primary key identity(1,1), CodeKarbar int foreign key references karbar(code) not null, Tarikh int not null, TedadRooz int not null, Vaziat smallint not null, Sharh nvarchar(3000), TarikhSabt int not null, SaatSabt int not null, Noe smallInt, CodeDaryaftPardakhtBargeh int, CodeTafsili bigint ) end