[dbo].[QueueServiceMessageType]
CREATE TABLE [dbo].[QueueServiceMessageType]
(
[QueueServiceMessageTypeID] [int] NOT NULL IDENTITY(1, 1),
[MessageTypeCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[MessageType] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[HandlerInterface] [varchar] (48) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DocumentElement] [varchar] (48) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PropertyList] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[QueueServiceMessageFormatFID] [int] NOT NULL,
[ProcessingOrder] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueueServiceMessageType] ADD CONSTRAINT [PK_QueueServiceMessageType] PRIMARY KEY CLUSTERED ([QueueServiceMessageTypeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueueServiceMessageType] ADD CONSTRAINT [IX_QueueServiceMessageType_MessageType] UNIQUE NONCLUSTERED ([MessageType]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_QueueServiceMessageType_DocumentElement] ON [dbo].[QueueServiceMessageType] ([DocumentElement]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueueServiceMessageType] ADD CONSTRAINT [FK_QueueServiceMessageType_QueueServiceMessageFormat] FOREIGN KEY ([QueueServiceMessageFormatFID]) REFERENCES [dbo].[QueueServiceMessageFormat] ([QueueServiceMessageFormatID])
GO
GRANT SELECT ON [dbo].[QueueServiceMessageType] TO [MssExec]
GRANT INSERT ON [dbo].[QueueServiceMessageType] TO [MssExec]
GRANT DELETE ON [dbo].[QueueServiceMessageType] TO [MssExec]
GRANT UPDATE ON [dbo].[QueueServiceMessageType] TO [MssExec]
GO