Tables [dbo].[usm_link_service_event]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count0
Created11:08:08 AM Wednesday, March 07, 2007
Last Modified1:17:01 PM Tuesday, March 30, 2010
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKusm_link_service_event: calendar_oid\contract_idForeign Keys $usm_l_r00002ee100000000: [dbo].[usm_calendar].calendar_oidcalendar_oidvarchar(20)20
No
Cluster Primary Key XPKusm_link_service_event: calendar_oid\contract_idForeign Keys $usm_l_r00002eeb00000000: [dbo].[usm_contract].contract_idcontract_idint4
No
slo_instance_idint4
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKusm_link_service_event: calendar_oid\contract_idXPKusm_link_service_eventcalendar_oid, contract_id
Yes
Foreign Keys Foreign Keys
NameColumns
$usm_l_r00002ee100000000calendar_oid->[dbo].[usm_calendar].[calendar_oid]
$usm_l_r00002eeb00000000contract_id->[dbo].[usm_contract].[contract_id]
Permissions
TypeActionOwning Principal
GrantDeleteusmgroup
GrantInsertusmgroup
GrantSelectusmgroup
GrantUpdateusmgroup
SQL Script
CREATE TABLE [dbo].[usm_link_service_event]
(
[calendar_oid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[contract_id] [int] NOT NULL,
[slo_instance_id] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_link_service_event] ADD CONSTRAINT [XPKusm_link_service_event] PRIMARY KEY CLUSTERED ([calendar_oid], [contract_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_link_service_event] ADD CONSTRAINT [$usm_l_r00002ee100000000] FOREIGN KEY ([calendar_oid]) REFERENCES [dbo].[usm_calendar] ([calendar_oid])
GO
ALTER TABLE [dbo].[usm_link_service_event] ADD CONSTRAINT [$usm_l_r00002eeb00000000] FOREIGN KEY ([contract_id]) REFERENCES [dbo].[usm_contract] ([contract_id])
GO
GRANT SELECT ON  [dbo].[usm_link_service_event] TO [usmgroup]
GRANT INSERT ON  [dbo].[usm_link_service_event] TO [usmgroup]
GRANT DELETE ON  [dbo].[usm_link_service_event] TO [usmgroup]
GRANT UPDATE ON  [dbo].[usm_link_service_event] TO [usmgroup]
GO
Uses