if not Exists(SELECT * FROM information_schema.tables where Table_name = 'LicenseProperty') begin create table LicenseProperty ( ID int primary key identity(1,1), Lic_ID int references License(ID) not null, Dom_ID int references Domain(ID) not null, [DateTime] DateTime null, Value nvarchar(max) null, CreateDateTime DateTime not null, ) end