if not Exists(SELECT * FROM information_schema.tables where Table_name = 'AccountItemRole') begin create table dbo.AccountItemRole ( ID int primary key identity(1,1), AI_ID int references dbo.AccountItem(ID) not null, Dom_ID int references dbo.Domain(ID) not null ) end