alter TABLE [AlertAttributeType]
add 
CONSTRAINT [PK_AlertAttributeTypeID] PRIMARY KEY 
(
	[AlertAttributeTypeID]
)
go

alter TABLE [AlertRuleAttribute]
add
 CONSTRAINT [PK_AlertRuleAttribute] PRIMARY KEY
(
	[AlertAttributeTypeID],
	[AlertRuleID]
)
GO

ALTER TABLE [OpenAlert]
ADD
 CONSTRAINT [PK_OpenAlert] PRIMARY KEY  
(
	[AlertRuleID],
	[ObjectID],
	[Guid]
)
GO

alter TABLE [MonitorType]
add
	CONSTRAINT [PK_MonitorType] PRIMARY KEY 
	(
		[MonitorTypeID]
	)
GO

