[dbo].[QueueServiceQueueRole]
CREATE TABLE [dbo].[QueueServiceQueueRole]
(
[QueueServiceQueueRoleID] [int] NOT NULL IDENTITY(1, 1),
[QueueRoleName] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SystemRole] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueueServiceQueueRole] ADD CONSTRAINT [PK_QueueServiceQueueRole] PRIMARY KEY CLUSTERED ([QueueServiceQueueRoleID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueueServiceQueueRole] ADD CONSTRAINT [IX_QueueServiceQueueRole_QueueRoleName] UNIQUE NONCLUSTERED ([QueueRoleName]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueueServiceQueueRole] ADD CONSTRAINT [IX_QueueServiceQueueRole_SystemRole] UNIQUE NONCLUSTERED ([SystemRole]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[QueueServiceQueueRole] TO [MssExec]
GRANT INSERT ON [dbo].[QueueServiceQueueRole] TO [MssExec]
GRANT DELETE ON [dbo].[QueueServiceQueueRole] TO [MssExec]
GRANT UPDATE ON [dbo].[QueueServiceQueueRole] TO [MssExec]
GO