Tables [dbo].[usm_sm_event]
Properties
PropertyValue
HeapYes
Row Count125273
Created11:08:10 AM Wednesday, March 07, 2007
Last Modified1:17:03 PM Tuesday, March 30, 2010
Columns
NameData TypeCollationMax Length (Bytes)Allow Nulls
ts_secint4
No
sla_engine_idint4
Yes
app_uservarchar(64)SQL_Latin1_General_CP1_CS_AS64
Yes
intervalint4
Yes
valuefloat8
Yes
time_stampdatetime8
Yes
data1int4
Yes
data2nvarchar(128)SQL_Latin1_General_CP1_CI_AS256
Yes
sla_instance_idint4
Yes
contract_idint4
Yes
host_idint4
Yes
slo_instance_idint4
Yes
metric_category_idint4
Yes
Foreign Keys $usm_s_r00002bfd00000000: [dbo].[usm_recurring_event].recurring_event_oidForeign Keys $usm_s_r00002e4100000000: [dbo].[usm_recurring_event].recurring_event_oidrecurring_event_oidvarchar(20)SQL_Latin1_General_CP1_CS_AS20
Yes
Foreign Keys $usm_s_r00002bf300000000: [dbo].[usm_onetime_event].onetime_event_oidForeign Keys $usm_s_r00002e3700000000: [dbo].[usm_onetime_event].onetime_event_oidonetime_event_oidvarchar(20)SQL_Latin1_General_CP1_CS_AS20
Yes
Foreign Keys $usm_s_r00002be900000000: [dbo].[usm_calendar_category].calendar_category_oidForeign Keys $usm_s_r00002e2d00000000: [dbo].[usm_calendar_category].calendar_category_oidcalendar_category_oidvarchar(20)SQL_Latin1_General_CP1_CS_AS20
Yes
insert_timeint4
Yes
Foreign Keys Foreign Keys
NameColumns
$usm_s_r00002be900000000calendar_category_oid->[dbo].[usm_calendar_category].[calendar_category_oid]
$usm_s_r00002bf300000000onetime_event_oid->[dbo].[usm_onetime_event].[onetime_event_oid]
$usm_s_r00002bfd00000000recurring_event_oid->[dbo].[usm_recurring_event].[recurring_event_oid]
$usm_s_r00002e2d00000000calendar_category_oid->[dbo].[usm_calendar_category].[calendar_category_oid]
$usm_s_r00002e3700000000onetime_event_oid->[dbo].[usm_onetime_event].[onetime_event_oid]
$usm_s_r00002e4100000000recurring_event_oid->[dbo].[usm_recurring_event].[recurring_event_oid]
Permissions
TypeActionOwning Principal
GrantDeleteusmgroup
GrantInsertusmgroup
GrantSelectusmgroup
GrantUpdateusmgroup
SQL Script
CREATE TABLE [dbo].[usm_sm_event]
(
[ts_sec] [int] NOT NULL,
[sla_engine_id] [int] NULL,
[app_user] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[interval] [int] NULL,
[value] [float] NULL,
[time_stamp] [datetime] NULL,
[data1] [int] NULL,
[data2] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[sla_instance_id] [int] NULL,
[contract_id] [int] NULL,
[host_id] [int] NULL,
[slo_instance_id] [int] NULL,
[metric_category_id] [int] NULL,
[recurring_event_oid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[onetime_event_oid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[calendar_category_oid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[insert_time] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_sm_event] ADD CONSTRAINT [$usm_s_r00002be900000000] FOREIGN KEY ([calendar_category_oid]) REFERENCES [dbo].[usm_calendar_category] ([calendar_category_oid])
GO
ALTER TABLE [dbo].[usm_sm_event] ADD CONSTRAINT [$usm_s_r00002bf300000000] FOREIGN KEY ([onetime_event_oid]) REFERENCES [dbo].[usm_onetime_event] ([onetime_event_oid])
GO
ALTER TABLE [dbo].[usm_sm_event] ADD CONSTRAINT [$usm_s_r00002bfd00000000] FOREIGN KEY ([recurring_event_oid]) REFERENCES [dbo].[usm_recurring_event] ([recurring_event_oid])
GO
ALTER TABLE [dbo].[usm_sm_event] ADD CONSTRAINT [$usm_s_r00002e2d00000000] FOREIGN KEY ([calendar_category_oid]) REFERENCES [dbo].[usm_calendar_category] ([calendar_category_oid])
GO
ALTER TABLE [dbo].[usm_sm_event] ADD CONSTRAINT [$usm_s_r00002e3700000000] FOREIGN KEY ([onetime_event_oid]) REFERENCES [dbo].[usm_onetime_event] ([onetime_event_oid])
GO
ALTER TABLE [dbo].[usm_sm_event] ADD CONSTRAINT [$usm_s_r00002e4100000000] FOREIGN KEY ([recurring_event_oid]) REFERENCES [dbo].[usm_recurring_event] ([recurring_event_oid])
GO
GRANT SELECT ON  [dbo].[usm_sm_event] TO [usmgroup]
GRANT INSERT ON  [dbo].[usm_sm_event] TO [usmgroup]
GRANT DELETE ON  [dbo].[usm_sm_event] TO [usmgroup]
GRANT UPDATE ON  [dbo].[usm_sm_event] TO [usmgroup]
GO
Uses