Tables [dbo].[usm_fiscal_period]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count37
Created11:08:05 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_fiscal_period: fp_idfp_idint4
No
namenvarchar(50)100
Yes
yearint4
No
Indexes usm_fiscal_period_idx_01: domain\period\start_date\end_datestart_datedatetime8
No
Indexes usm_fiscal_period_idx_01: domain\period\start_date\end_dateend_datedatetime8
No
Indexes usm_fiscal_period_idx_01: domain\period\start_date\end_dateperiodint4
Yes
Foreign Keys XFKusm_fiscal_period1: [dbo].[usm_tenant_ext].domainIndexes usm_fiscal_period_idx_01: domain\period\start_date\end_datedomainvarchar(50)50
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKusm_fiscal_period: fp_idXPKusm_fiscal_periodfp_id
Yes
usm_fiscal_period_idx_01domain, period, start_date, end_date
Foreign Keys Foreign Keys
NameColumns
XFKusm_fiscal_period1domain->[dbo].[usm_tenant_ext].[tenant_id]
Permissions
TypeActionOwning Principal
GrantDeleteusmgroup
GrantInsertusmgroup
GrantSelectusmgroup
GrantUpdateusmgroup
SQL Script
CREATE TABLE [dbo].[usm_fiscal_period]
(
[fp_id] [int] NOT NULL,
[name] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[year] [int] NOT NULL,
[start_date] [datetime] NOT NULL,
[end_date] [datetime] NOT NULL,
[period] [int] NULL,
[domain] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CS_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_fiscal_period] ADD CONSTRAINT [XPKusm_fiscal_period] PRIMARY KEY CLUSTERED ([fp_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [usm_fiscal_period_idx_01] ON [dbo].[usm_fiscal_period] ([domain], [period], [start_date], [end_date]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_fiscal_period] ADD CONSTRAINT [XFKusm_fiscal_period1] FOREIGN KEY ([domain]) REFERENCES [dbo].[usm_tenant_ext] ([tenant_id])
GO
GRANT SELECT ON  [dbo].[usm_fiscal_period] TO [usmgroup]
GRANT INSERT ON  [dbo].[usm_fiscal_period] TO [usmgroup]
GRANT DELETE ON  [dbo].[usm_fiscal_period] TO [usmgroup]
GRANT UPDATE ON  [dbo].[usm_fiscal_period] TO [usmgroup]
GO
Uses
Used By