Tables [dbo].[StatementGLAllocation]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)8703
Created4:57:09 PM Thursday, September 7, 2006
Last Modified10:44:33 AM Monday, December 9, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_StatementGLAllocation: StatementGLAllocationIDStatementGLAllocationIDint4
No
1 - 1
Foreign Keys FK_StatementGLAllocation_StatementDetail: [dbo].[StatementDetail].SDPriKeyIndexes IX_StatementGLAllocation_SDPriKey: SDPriKeySDPriKeyint4
No
Foreign Keys FK_StatementGLAllocation_StatementDetailDist: [dbo].[StatementDetailDist].SDDPriKeySDDPriKeyint4
Yes
Foreign Keys FK_StatementGLAllocation_Branch: [dbo].[Branch].BranchPriKeyBranchPriKeyint4
No
Descriptionvarchar(128)128
Yes
Amountmoney8
Yes
(0)
Foreign Keys FK_StatementGLAllocation_Division: [dbo].[Division].DivisionFIDDivisionFIDint4
Yes
GLAccountNumbervarchar(66)66
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_StatementGLAllocation: StatementGLAllocationIDPK_StatementGLAllocationStatementGLAllocationID
Yes
80
IX_StatementGLAllocation_SDPriKeySDPriKey80
Foreign Keys Foreign Keys
NameColumns
FK_StatementGLAllocation_BranchBranchPriKey->[dbo].[Branch].[BranchPriKey]
FK_StatementGLAllocation_DivisionDivisionFID->[dbo].[Division].[DivisionID]
FK_StatementGLAllocation_StatementDetailDistSDDPriKey->[dbo].[StatementDetailDist].[SDDPriKey]
FK_StatementGLAllocation_StatementDetailSDPriKey->[dbo].[StatementDetail].[SDPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StatementGLAllocation]
(
[StatementGLAllocationID] [int] NOT NULL IDENTITY(1, 1),
[SDPriKey] [int] NOT NULL,
[SDDPriKey] [int] NULL,
[BranchPriKey] [int] NOT NULL,
[Description] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Amount] [money] NULL CONSTRAINT [DF_StatementGLAllocation_Amount] DEFAULT (0),
[DivisionFID] [int] NULL,
[GLAccountNumber] [varchar] (66) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StatementGLAllocation] ADD CONSTRAINT [PK_StatementGLAllocation] PRIMARY KEY CLUSTERED  ([StatementGLAllocationID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StatementGLAllocation_SDPriKey] ON [dbo].[StatementGLAllocation] ([SDPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StatementGLAllocation] ADD CONSTRAINT [FK_StatementGLAllocation_Branch] FOREIGN KEY ([BranchPriKey]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
ALTER TABLE [dbo].[StatementGLAllocation] ADD CONSTRAINT [FK_StatementGLAllocation_Division] FOREIGN KEY ([DivisionFID]) REFERENCES [dbo].[Division] ([DivisionID])
GO
ALTER TABLE [dbo].[StatementGLAllocation] ADD CONSTRAINT [FK_StatementGLAllocation_StatementDetailDist] FOREIGN KEY ([SDDPriKey]) REFERENCES [dbo].[StatementDetailDist] ([SDDPriKey])
GO
ALTER TABLE [dbo].[StatementGLAllocation] ADD CONSTRAINT [FK_StatementGLAllocation_StatementDetail] FOREIGN KEY ([SDPriKey]) REFERENCES [dbo].[StatementDetail] ([SDPriKey])
GO
GRANT SELECT ON  [dbo].[StatementGLAllocation] TO [MssExec]
GRANT INSERT ON  [dbo].[StatementGLAllocation] TO [MssExec]
GRANT DELETE ON  [dbo].[StatementGLAllocation] TO [MssExec]
GRANT UPDATE ON  [dbo].[StatementGLAllocation] TO [MssExec]
GO
Uses