Tables [dbo].[usm_link_calendar_contract]
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_calendar_contract: calendar_oid\contract_idForeign Keys $usm_l_r00002d3300000000: [dbo].[usm_calendar].calendar_oidcalendar_oidvarchar(20)20
No
Cluster Primary Key XPKusm_link_calendar_contract: calendar_oid\contract_idForeign Keys $usm_l_r00002d3d00000000: [dbo].[usm_contract].contract_idcontract_idint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKusm_link_calendar_contract: calendar_oid\contract_idXPKusm_link_calendar_contractcalendar_oid, contract_id
Yes
Foreign Keys Foreign Keys
NameColumns
$usm_l_r00002d3300000000calendar_oid->[dbo].[usm_calendar].[calendar_oid]
$usm_l_r00002d3d00000000contract_id->[dbo].[usm_contract].[contract_id]
Permissions
TypeActionOwning Principal
GrantDeleteusmgroup
GrantInsertusmgroup
GrantSelectusmgroup
GrantUpdateusmgroup
SQL Script
CREATE TABLE [dbo].[usm_link_calendar_contract]
(
[calendar_oid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[contract_id] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_link_calendar_contract] ADD CONSTRAINT [XPKusm_link_calendar_contract] PRIMARY KEY CLUSTERED ([calendar_oid], [contract_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_link_calendar_contract] ADD CONSTRAINT [$usm_l_r00002d3300000000] FOREIGN KEY ([calendar_oid]) REFERENCES [dbo].[usm_calendar] ([calendar_oid])
GO
ALTER TABLE [dbo].[usm_link_calendar_contract] ADD CONSTRAINT [$usm_l_r00002d3d00000000] FOREIGN KEY ([contract_id]) REFERENCES [dbo].[usm_contract] ([contract_id])
GO
GRANT SELECT ON  [dbo].[usm_link_calendar_contract] TO [usmgroup]
GRANT INSERT ON  [dbo].[usm_link_calendar_contract] TO [usmgroup]
GRANT DELETE ON  [dbo].[usm_link_calendar_contract] TO [usmgroup]
GRANT UPDATE ON  [dbo].[usm_link_calendar_contract] TO [usmgroup]
GO
Uses