Tables [dbo].[GLDetail]
Properties
PropertyValue
Row Count (~)44
Created4:57:06 PM Thursday, September 7, 2006
Last Modified11:13:39 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_GLDetail: GLDPriKeyGLDPriKeyint4
No
1 - 1
Foreign Keys FK_GLDetail_GLControl: [dbo].[GLControl].GLCPriKeyIndexes IX_GLDetail_GLCPriKey: GLCPriKeyGLCPriKeyint4
No
Foreign Keys FK_GLDetail_GLSource: [dbo].[GLSource].GLSPriKeyIndexes IX_GLDetail_GLSPriKey: GLSPriKeyGLSPriKeyint4
No
Indexes IX_GLDetail_SegmentNumber: SegmentNumberSegmentNumberint4
No
SegmentLengthint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_GLDetail: GLDPriKeyPK_GLDetailGLDPriKey
Yes
80
IX_GLDetail_GLCPriKeyGLCPriKey80
IX_GLDetail_GLSPriKeyGLSPriKey80
IX_GLDetail_SegmentNumberSegmentNumber80
Foreign Keys Foreign Keys
NameColumns
FK_GLDetail_GLControlGLCPriKey->[dbo].[GLControl].[GLCPriKey]
FK_GLDetail_GLSourceGLSPriKey->[dbo].[GLSource].[GLSPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[GLDetail]
(
[GLDPriKey] [int] NOT NULL IDENTITY(1, 1),
[GLCPriKey] [int] NOT NULL,
[GLSPriKey] [int] NOT NULL,
[SegmentNumber] [int] NOT NULL,
[SegmentLength] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GLDetail] ADD CONSTRAINT [PK_GLDetail] PRIMARY KEY CLUSTERED  ([GLDPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_GLDetail_GLCPriKey] ON [dbo].[GLDetail] ([GLCPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_GLDetail_GLSPriKey] ON [dbo].[GLDetail] ([GLSPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_GLDetail_SegmentNumber] ON [dbo].[GLDetail] ([SegmentNumber]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GLDetail] ADD CONSTRAINT [FK_GLDetail_GLControl] FOREIGN KEY ([GLCPriKey]) REFERENCES [dbo].[GLControl] ([GLCPriKey])
GO
ALTER TABLE [dbo].[GLDetail] ADD CONSTRAINT [FK_GLDetail_GLSource] FOREIGN KEY ([GLSPriKey]) REFERENCES [dbo].[GLSource] ([GLSPriKey])
GO
GRANT SELECT ON  [dbo].[GLDetail] TO [MssExec]
GRANT INSERT ON  [dbo].[GLDetail] TO [MssExec]
GRANT DELETE ON  [dbo].[GLDetail] TO [MssExec]
GRANT UPDATE ON  [dbo].[GLDetail] TO [MssExec]
GO
Uses