Tables [dbo].[usm_sm_event]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
HeapYes
Row Count0
Created12:31:36 PM Sunday, December 05, 2010
Last Modified5:02:32 PM Monday, April 25, 2011
Columns
NameData TypeMax Length (Bytes)Allow Nulls
ts_secint4
No
sla_engine_idint4
Yes
app_uservarchar(64)64
Yes
intervalint4
Yes
valuefloat8
Yes
time_stampdatetime8
Yes
data1int4
Yes
data2varchar(64)64
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)20
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)20
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)20
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] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CS_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