Tables [dbo].[XLedgerXglToItemCodeMapping]
Properties
PropertyValue
Row Count (~)0
Created3:09:14 PM Tuesday, June 24, 2025
Last Modified3:09:19 PM Tuesday, June 24, 2025
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XLedgerXglToItemCodeMapping: XLedgerXglToItemCodeMappingIdXLedgerXglToItemCodeMappingIdint4
No
1 - 1
Cluster Key IX_XLedgerXglToItemCodeMapping_Xgl_ItemCode: XglFid\ItemCodeFidForeign Keys FK_XLedgerXglToItemCodeMapping_Xgl: [dbo].[Xgl].XglFidXglFidint4
No
Cluster Key IX_XLedgerXglToItemCodeMapping_Xgl_ItemCode: XglFid\ItemCodeFidForeign Keys FK_XLedgerXglToItemCodeMapping_ItemCode: [dbo].[ItemCode].ItemCodeFidIndexes IX_XLedgerXglToItemCodeMapping_ItemCode: ItemCodeFidItemCodeFidint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XLedgerXglToItemCodeMapping: XLedgerXglToItemCodeMappingIdPK_XLedgerXglToItemCodeMappingXLedgerXglToItemCodeMappingId
Yes
Cluster Key IX_XLedgerXglToItemCodeMapping_Xgl_ItemCode: XglFid\ItemCodeFidIX_XLedgerXglToItemCodeMapping_Xgl_ItemCodeXglFid, ItemCodeFid
Yes
IX_XLedgerXglToItemCodeMapping_ItemCodeItemCodeFid
Foreign Keys Foreign Keys
NameColumns
FK_XLedgerXglToItemCodeMapping_ItemCodeItemCodeFid->[dbo].[ItemCode].[ICPriKey]
FK_XLedgerXglToItemCodeMapping_XglXglFid->[dbo].[Xgl].[XglId]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XLedgerXglToItemCodeMapping]
(
[XLedgerXglToItemCodeMappingId] [int] NOT NULL IDENTITY(1, 1),
[XglFid] [int] NOT NULL,
[ItemCodeFid] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerXglToItemCodeMapping] ADD CONSTRAINT [PK_XLedgerXglToItemCodeMapping] PRIMARY KEY NONCLUSTERED  ([XLedgerXglToItemCodeMappingId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerXglToItemCodeMapping] ADD CONSTRAINT [IX_XLedgerXglToItemCodeMapping_Xgl_ItemCode] UNIQUE CLUSTERED  ([XglFid], [ItemCodeFid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_XLedgerXglToItemCodeMapping_ItemCode] ON [dbo].[XLedgerXglToItemCodeMapping] ([ItemCodeFid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerXglToItemCodeMapping] ADD CONSTRAINT [FK_XLedgerXglToItemCodeMapping_ItemCode] FOREIGN KEY ([ItemCodeFid]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
ALTER TABLE [dbo].[XLedgerXglToItemCodeMapping] ADD CONSTRAINT [FK_XLedgerXglToItemCodeMapping_Xgl] FOREIGN KEY ([XglFid]) REFERENCES [dbo].[Xgl] ([XglId])
GO
GRANT SELECT ON  [dbo].[XLedgerXglToItemCodeMapping] TO [MssExec]
GRANT INSERT ON  [dbo].[XLedgerXglToItemCodeMapping] TO [MssExec]
GRANT DELETE ON  [dbo].[XLedgerXglToItemCodeMapping] TO [MssExec]
GRANT UPDATE ON  [dbo].[XLedgerXglToItemCodeMapping] TO [MssExec]
GO
Uses
Used By