Tables [dbo].[ServTypeClassGLCodeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created10:07:29 AM Friday, December 7, 2018
Last Modified10:07:29 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_ServTypeClassGLCodeMap: ServTypeClassGLCodeMapIDServTypeClassGLCodeMapIDint4
No
1 - 1
Foreign Keys FK_ServTypeClassGLCodeMap_ServTypeClass: [dbo].[ServTypeClass].ServTypeClassFIDIndexes IX_ServTypeClassGLCodeMap_ServTypeClass_AuthorityType_CommType: ServTypeClassFID\AuthorityTypeFID\CommTypeFIDIndexes IX_ServTypeClassGLCodeMap_ServTypeClass_AuthorityType_MoveTypeGroup_CommType: ServTypeClassFID\AuthorityTypeFID\MoveTypeGroupFID\CommTypeFIDIndexes IX_ServTypeClassGLCodeMap_ServTypeClass_CommType: ServTypeClassFID\CommTypeFIDIndexes IX_ServTypeClassGLCodeMap_ServTypeClass_MoveTypeGroup_CommType: ServTypeClassFID\MoveTypeGroupFID\CommTypeFIDServTypeClassFIDint4
No
Foreign Keys FK_ServTypeClassGLCodeMap_AuthorityTypes: [dbo].[AuthorityTypes].AuthorityTypeFIDIndexes IX_ServTypeClassGLCodeMap_ServTypeClass_AuthorityType_CommType: ServTypeClassFID\AuthorityTypeFID\CommTypeFIDIndexes IX_ServTypeClassGLCodeMap_ServTypeClass_AuthorityType_MoveTypeGroup_CommType: ServTypeClassFID\AuthorityTypeFID\MoveTypeGroupFID\CommTypeFIDAuthorityTypeFIDint4
Yes
Foreign Keys FK_ServTypeClassGLCodeMap_MoveTypeGroups: [dbo].[MoveTypeGroups].MoveTypeGroupFIDIndexes IX_ServTypeClassGLCodeMap_ServTypeClass_AuthorityType_MoveTypeGroup_CommType: ServTypeClassFID\AuthorityTypeFID\MoveTypeGroupFID\CommTypeFIDIndexes IX_ServTypeClassGLCodeMap_ServTypeClass_MoveTypeGroup_CommType: ServTypeClassFID\MoveTypeGroupFID\CommTypeFIDMoveTypeGroupFIDint4
Yes
Foreign Keys FK_ServTypeClassGLCodeMap_CommType: [dbo].[CommType].CommTypeFIDIndexes IX_ServTypeClassGLCodeMap_ServTypeClass_AuthorityType_CommType: ServTypeClassFID\AuthorityTypeFID\CommTypeFIDIndexes IX_ServTypeClassGLCodeMap_ServTypeClass_AuthorityType_MoveTypeGroup_CommType: ServTypeClassFID\AuthorityTypeFID\MoveTypeGroupFID\CommTypeFIDIndexes IX_ServTypeClassGLCodeMap_ServTypeClass_CommType: ServTypeClassFID\CommTypeFIDIndexes IX_ServTypeClassGLCodeMap_ServTypeClass_MoveTypeGroup_CommType: ServTypeClassFID\MoveTypeGroupFID\CommTypeFIDCommTypeFIDint4
Yes
GLCodevarchar(7)7
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_ServTypeClassGLCodeMap: ServTypeClassGLCodeMapIDPK_ServTypeClassGLCodeMapServTypeClassGLCodeMapID
Yes
IX_ServTypeClassGLCodeMap_ServTypeClass_AuthorityType_MoveTypeGroup_CommTypeServTypeClassFID, AuthorityTypeFID, MoveTypeGroupFID, CommTypeFID
Yes
IX_ServTypeClassGLCodeMap_ServTypeClass_AuthorityType_CommTypeServTypeClassFID, AuthorityTypeFID, CommTypeFID
IX_ServTypeClassGLCodeMap_ServTypeClass_CommTypeServTypeClassFID, CommTypeFID
IX_ServTypeClassGLCodeMap_ServTypeClass_MoveTypeGroup_CommTypeServTypeClassFID, MoveTypeGroupFID, CommTypeFID
Foreign Keys Foreign Keys
NameColumns
FK_ServTypeClassGLCodeMap_AuthorityTypesAuthorityTypeFID->[dbo].[AuthorityTypes].[AuthPriKey]
FK_ServTypeClassGLCodeMap_CommTypeCommTypeFID->[dbo].[CommType].[PriKey]
FK_ServTypeClassGLCodeMap_MoveTypeGroupsMoveTypeGroupFID->[dbo].[MoveTypeGroups].[MTGroupPriKey]
FK_ServTypeClassGLCodeMap_ServTypeClassServTypeClassFID->[dbo].[ServTypeClass].[ServTypeClassID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ServTypeClassGLCodeMap]
(
[ServTypeClassGLCodeMapID] [int] NOT NULL IDENTITY(1, 1),
[ServTypeClassFID] [int] NOT NULL,
[AuthorityTypeFID] [int] NULL,
[MoveTypeGroupFID] [int] NULL,
[CommTypeFID] [int] NULL,
[GLCode] [varchar] (7) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServTypeClassGLCodeMap] ADD CONSTRAINT [PK_ServTypeClassGLCodeMap] PRIMARY KEY CLUSTERED  ([ServTypeClassGLCodeMapID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ServTypeClassGLCodeMap_ServTypeClass_AuthorityType_CommType] ON [dbo].[ServTypeClassGLCodeMap] ([ServTypeClassFID], [AuthorityTypeFID], [CommTypeFID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_ServTypeClassGLCodeMap_ServTypeClass_AuthorityType_MoveTypeGroup_CommType] ON [dbo].[ServTypeClassGLCodeMap] ([ServTypeClassFID], [AuthorityTypeFID], [MoveTypeGroupFID], [CommTypeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ServTypeClassGLCodeMap_ServTypeClass_CommType] ON [dbo].[ServTypeClassGLCodeMap] ([ServTypeClassFID], [CommTypeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ServTypeClassGLCodeMap_ServTypeClass_MoveTypeGroup_CommType] ON [dbo].[ServTypeClassGLCodeMap] ([ServTypeClassFID], [MoveTypeGroupFID], [CommTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServTypeClassGLCodeMap] ADD CONSTRAINT [FK_ServTypeClassGLCodeMap_AuthorityTypes] FOREIGN KEY ([AuthorityTypeFID]) REFERENCES [dbo].[AuthorityTypes] ([AuthPriKey])
GO
ALTER TABLE [dbo].[ServTypeClassGLCodeMap] ADD CONSTRAINT [FK_ServTypeClassGLCodeMap_CommType] FOREIGN KEY ([CommTypeFID]) REFERENCES [dbo].[CommType] ([PriKey])
GO
ALTER TABLE [dbo].[ServTypeClassGLCodeMap] ADD CONSTRAINT [FK_ServTypeClassGLCodeMap_MoveTypeGroups] FOREIGN KEY ([MoveTypeGroupFID]) REFERENCES [dbo].[MoveTypeGroups] ([MTGroupPriKey])
GO
ALTER TABLE [dbo].[ServTypeClassGLCodeMap] ADD CONSTRAINT [FK_ServTypeClassGLCodeMap_ServTypeClass] FOREIGN KEY ([ServTypeClassFID]) REFERENCES [dbo].[ServTypeClass] ([ServTypeClassID])
GO
GRANT SELECT ON  [dbo].[ServTypeClassGLCodeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[ServTypeClassGLCodeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[ServTypeClassGLCodeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[ServTypeClassGLCodeMap] TO [MssExec]
GO
Uses