Tables [dbo].[usm_plan_data]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count19
Created11:43:56 AM Sunday, May 13, 2007
Last Modified1:17:01 PM Tuesday, March 30, 2010
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKusm_plan_data: fp_id\ps_id\cp_id\item_id\type\domainForeign Keys $usm_p_r0000280100000000: [dbo].[usm_fiscal_period].fp_idForeign Keys $usm_p_r00002dfb00000000: [dbo].[usm_fiscal_period].fp_idForeign Keys XFK03usm_plan_data: [dbo].[usm_fiscal_period].fp_idfp_idint4
No
Cluster Primary Key XPKusm_plan_data: fp_id\ps_id\cp_id\item_id\type\domainForeign Keys $usm_p_r000027f700000000: [dbo].[usm_planning_set].ps_idForeign Keys $usm_p_r00002df100000000: [dbo].[usm_planning_set].ps_idForeign Keys XFK02usm_plan_data: [dbo].[usm_planning_set].ps_idps_idint4
No
Cluster Primary Key XPKusm_plan_data: fp_id\ps_id\cp_id\item_id\type\domainForeign Keys $usm_p_r000027ed00000000: [dbo].[usm_cost_pool].cp_idForeign Keys $usm_p_r00002de700000000: [dbo].[usm_cost_pool].cp_idForeign Keys XFK01usm_plan_data: [dbo].[usm_cost_pool].cp_idcp_idint4
No
Cluster Primary Key XPKusm_plan_data: fp_id\ps_id\cp_id\item_id\type\domainitem_idint4
No
Cluster Primary Key XPKusm_plan_data: fp_id\ps_id\cp_id\item_id\type\domaintypeint4
No
Cluster Primary Key XPKusm_plan_data: fp_id\ps_id\cp_id\item_id\type\domaindomainvarchar(50)50
No
numeric_1float8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKusm_plan_data: fp_id\ps_id\cp_id\item_id\type\domainXPKusm_plan_datafp_id, ps_id, cp_id, item_id, type, domain
Yes
Foreign Keys Foreign Keys
NameColumns
$usm_p_r000027ed00000000cp_id->[dbo].[usm_cost_pool].[cp_id]
$usm_p_r000027f700000000ps_id->[dbo].[usm_planning_set].[ps_id]
$usm_p_r0000280100000000fp_id->[dbo].[usm_fiscal_period].[fp_id]
$usm_p_r00002de700000000cp_id->[dbo].[usm_cost_pool].[cp_id]
$usm_p_r00002df100000000ps_id->[dbo].[usm_planning_set].[ps_id]
$usm_p_r00002dfb00000000fp_id->[dbo].[usm_fiscal_period].[fp_id]
XFK01usm_plan_datacp_id->[dbo].[usm_cost_pool].[cp_id]
XFK02usm_plan_dataps_id->[dbo].[usm_planning_set].[ps_id]
XFK03usm_plan_datafp_id->[dbo].[usm_fiscal_period].[fp_id]
Permissions
TypeActionOwning Principal
GrantDeleteusmgroup
GrantInsertusmgroup
GrantSelectusmgroup
GrantUpdateusmgroup
SQL Script
CREATE TABLE [dbo].[usm_plan_data]
(
[fp_id] [int] NOT NULL,
[ps_id] [int] NOT NULL,
[cp_id] [int] NOT NULL,
[item_id] [int] NOT NULL,
[type] [int] NOT NULL,
[domain] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[numeric_1] [float] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_plan_data] ADD CONSTRAINT [XPKusm_plan_data] PRIMARY KEY CLUSTERED ([fp_id], [ps_id], [cp_id], [item_id], [type], [domain]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_plan_data] ADD CONSTRAINT [$usm_p_r000027ed00000000] FOREIGN KEY ([cp_id]) REFERENCES [dbo].[usm_cost_pool] ([cp_id])
GO
ALTER TABLE [dbo].[usm_plan_data] ADD CONSTRAINT [$usm_p_r000027f700000000] FOREIGN KEY ([ps_id]) REFERENCES [dbo].[usm_planning_set] ([ps_id])
GO
ALTER TABLE [dbo].[usm_plan_data] ADD CONSTRAINT [$usm_p_r0000280100000000] FOREIGN KEY ([fp_id]) REFERENCES [dbo].[usm_fiscal_period] ([fp_id])
GO
ALTER TABLE [dbo].[usm_plan_data] ADD CONSTRAINT [$usm_p_r00002de700000000] FOREIGN KEY ([cp_id]) REFERENCES [dbo].[usm_cost_pool] ([cp_id])
GO
ALTER TABLE [dbo].[usm_plan_data] ADD CONSTRAINT [$usm_p_r00002df100000000] FOREIGN KEY ([ps_id]) REFERENCES [dbo].[usm_planning_set] ([ps_id])
GO
ALTER TABLE [dbo].[usm_plan_data] ADD CONSTRAINT [$usm_p_r00002dfb00000000] FOREIGN KEY ([fp_id]) REFERENCES [dbo].[usm_fiscal_period] ([fp_id])
GO
ALTER TABLE [dbo].[usm_plan_data] ADD CONSTRAINT [XFK01usm_plan_data] FOREIGN KEY ([cp_id]) REFERENCES [dbo].[usm_cost_pool] ([cp_id])
GO
ALTER TABLE [dbo].[usm_plan_data] ADD CONSTRAINT [XFK02usm_plan_data] FOREIGN KEY ([ps_id]) REFERENCES [dbo].[usm_planning_set] ([ps_id])
GO
ALTER TABLE [dbo].[usm_plan_data] ADD CONSTRAINT [XFK03usm_plan_data] FOREIGN KEY ([fp_id]) REFERENCES [dbo].[usm_fiscal_period] ([fp_id])
GO
GRANT SELECT ON  [dbo].[usm_plan_data] TO [usmgroup]
GRANT INSERT ON  [dbo].[usm_plan_data] TO [usmgroup]
GRANT DELETE ON  [dbo].[usm_plan_data] TO [usmgroup]
GRANT UPDATE ON  [dbo].[usm_plan_data] TO [usmgroup]
GO
Uses