[dbo].[QueueServiceServerQueue]
CREATE TABLE [dbo].[QueueServiceServerQueue]
(
[QueueServiceServerQueueID] [int] NOT NULL IDENTITY(1, 1),
[QueueServiceServerFID] [int] NOT NULL,
[QueueServiceQueueRoleFID] [int] NOT NULL,
[QueueServiceQueueTypeFID] [int] NOT NULL,
[QueuePath] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Inactive] [bit] NOT NULL CONSTRAINT [DF_QueueServiceServerQueue_Inactive] DEFAULT ((0)),
[Filter] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[MinMsgAgeMilliseconds] [int] NULL,
[MessageType] [varchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[QueueManagerName] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ChannelName] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ConnectionName] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DefaultReceiveFormat] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[UseMessageGrouping] [bit] NULL,
[TransportType] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Encoding] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[RetryMaxAllowedAgeInSeconds] [int] NULL,
[RetryMaxAllowedAttempts] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueueServiceServerQueue] ADD CONSTRAINT [PK_QueueServiceServerQueue] PRIMARY KEY CLUSTERED ([QueueServiceServerQueueID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueueServiceServerQueue] ADD CONSTRAINT [IX_QueueServiceServerQueue_QueueServiceQueueRole] UNIQUE NONCLUSTERED ([QueueServiceServerFID], [QueueServiceQueueRoleFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueueServiceServerQueue] ADD CONSTRAINT [FK_QueueServiceServerQueue_QueueServiceQueueRole] FOREIGN KEY ([QueueServiceQueueRoleFID]) REFERENCES [dbo].[QueueServiceQueueRole] ([QueueServiceQueueRoleID])
GO
ALTER TABLE [dbo].[QueueServiceServerQueue] ADD CONSTRAINT [FK_QueueServiceServerQueue_QueueServiceQueueType] FOREIGN KEY ([QueueServiceQueueTypeFID]) REFERENCES [dbo].[QueueServiceQueueType] ([QueueServiceQueueTypeID])
GO
ALTER TABLE [dbo].[QueueServiceServerQueue] ADD CONSTRAINT [FK_QueueServiceServerQueue_QueueServiceServer] FOREIGN KEY ([QueueServiceServerFID]) REFERENCES [dbo].[QueueServiceServer] ([QueueServiceServerID])
GO
GRANT SELECT ON [dbo].[QueueServiceServerQueue] TO [MssExec]
GRANT INSERT ON [dbo].[QueueServiceServerQueue] TO [MssExec]
GRANT DELETE ON [dbo].[QueueServiceServerQueue] TO [MssExec]
GRANT UPDATE ON [dbo].[QueueServiceServerQueue] TO [MssExec]
GO