Tables [dbo].[GLSource]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)5
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_GLSource: GLSPriKeyGLSPriKeyint4
No
1 - 1
Check Constraints CK_GLSource_SourceName : ([SourceName]='Sub' OR [SourceName]='Natural' OR [SourceName]='Division' OR [SourceName]='Branch' OR [SourceName]='Company')Indexes IX_GLSource_SourceName: SourceNameSourceNamevarchar(50)50
No
SourceTablevarchar(50)50
No
SourceFieldvarchar(50)50
No
SourceKeyFieldNamevarchar(50)50
Yes
ParentKeyFieldNamevarchar(50)50
Yes
NormalOrSubchar(1)1
No
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_GLSource: GLSPriKeyPK_GLSourceGLSPriKey
Yes
80
IX_GLSource_SourceNameSourceName
Yes
80
Check Constraints Check Constraints
NameOn ColumnConstraint
CK_GLSource_SourceNameSourceName([SourceName]='Sub' OR [SourceName]='Natural' OR [SourceName]='Division' OR [SourceName]='Branch' OR [SourceName]='Company')
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[GLSource]
(
[GLSPriKey] [int] NOT NULL IDENTITY(1, 1),
[SourceName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SourceTable] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SourceField] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SourceKeyFieldName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ParentKeyFieldName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[NormalOrSub] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GLSource] ADD CONSTRAINT [CK_GLSource_SourceName] CHECK (([SourceName]='Sub' OR [SourceName]='Natural' OR [SourceName]='Division' OR [SourceName]='Branch' OR [SourceName]='Company'))
GO
ALTER TABLE [dbo].[GLSource] ADD CONSTRAINT [PK_GLSource] PRIMARY KEY CLUSTERED  ([GLSPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GLSource] ADD CONSTRAINT [IX_GLSource_SourceName] UNIQUE NONCLUSTERED  ([SourceName]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[GLSource] TO [MssExec]
GRANT INSERT ON  [dbo].[GLSource] TO [MssExec]
GRANT DELETE ON  [dbo].[GLSource] TO [MssExec]
GRANT UPDATE ON  [dbo].[GLSource] TO [MssExec]
GO
Uses
Used By