if Exists(SELECT * FROM information_schema.tables where Table_name = 'ProductFormul') begin print 'true' end else begin create table ProductFormul ( ID int Primary key, Code int Not null, Kal_ID int references Kala(code) not null, Sharh nvarchar(300), CodeKarbar int references Karbar(code) not null, TarikhSabt int not null, SaatSabt smallint not null ) end