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

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

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

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


