CREATE TABLE [dbo].[rmonhostcontrol]
(
[server_addr] [int] NULL,
[probe_addr] [int] NULL,
[intervaldatetime] [datetime] NULL,
[hostcontrolindex] [int] NULL,
[hostcontroldatasource] [int] NULL,
[hostcontrolstatus] [tinyint] NULL,
[hosttopngrantedsize0] [tinyint] NULL,
[hosttopngrantedsize1] [tinyint] NULL,
[hosttopngrantedsize2] [tinyint] NULL,
[hosttopngrantedsize3] [tinyint] NULL,
[hosttopngrantedsize4] [tinyint] NULL,
[hosttopngrantedsize5] [tinyint] NULL,
[hosttopngrantedsize6] [tinyint] NULL
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [baseidx_rmonhostcontrol] ON [dbo].[rmonhostcontrol] ([probe_addr], [intervaldatetime], [hostcontrolindex]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[rmonhostcontrol] TO [uniadmin]
GRANT INSERT ON [dbo].[rmonhostcontrol] TO [uniadmin]
GRANT DELETE ON [dbo].[rmonhostcontrol] TO [uniadmin]
GRANT UPDATE ON [dbo].[rmonhostcontrol] TO [uniadmin]
GRANT SELECT ON [dbo].[rmonhostcontrol] TO [uniuser]
GO