Tables [dbo].[XLedgerTransactionHeader]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created7:47:06 PM Saturday, February 7, 2026
Last Modified7:49:23 PM Saturday, February 7, 2026
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_XLedgerTransactionHeader: XLedgerTransactionHeaderIdXLedgerTransactionHeaderIdint4
No
1 - 1
Indexes IX_XLedgerTransactionHeader_XLedgerDbId: XLedgerDbIdXLedgerDbIdbigint8
No
Foreign Keys FK_XLedgerTransactionHeader_XLedgerJournalEntryBatch: [dbo].[XLedgerJournalEntryBatch].XLedgerJournalEntryBatchFidXLedgerJournalEntryBatchFidint4
No
Indexes IX_XLedgerTransactionHeader_ArApMatchIdentifier: ArApMatchIdentifierArApMatchIdentifiernvarchar(50)100
Yes
ArApExternalIdentifiernvarchar(25)50
Yes
Indexes IX_XLedgerTransactionHeader_SubledgerTransactionXLedgerDbId: SubledgerTransactionXLedgerDbIdSubledgerTransactionXLedgerDbIdbigint8
Yes
Foreign Keys FK_XLedgerTransactionHeader_XLedgerTransactionHoldStatus: [dbo].[XLedgerTransactionHoldStatus].XLedgerTransactionHoldStatusFidXLedgerTransactionHoldStatusFidint4
Yes
Indexes Indexes
NameColumnsUniqueFiltered
Cluster Primary Key PK_XLedgerTransactionHeader: XLedgerTransactionHeaderIdPK_XLedgerTransactionHeaderXLedgerTransactionHeaderId
Yes
IX_XLedgerTransactionHeader_ArApMatchIdentifierArApMatchIdentifier
Yes
Yes
IX_XLedgerTransactionHeader_SubledgerTransactionXLedgerDbIdSubledgerTransactionXLedgerDbId
Yes
Yes
IX_XLedgerTransactionHeader_XLedgerDbIdXLedgerDbId
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XLedgerTransactionHeader_XLedgerJournalEntryBatchXLedgerJournalEntryBatchFid->[dbo].[XLedgerJournalEntryBatch].[XLedgerJournalEntryBatchId]
FK_XLedgerTransactionHeader_XLedgerTransactionHoldStatusXLedgerTransactionHoldStatusFid->[dbo].[XLedgerTransactionHoldStatus].[XLedgerTransactionHoldStatusId]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XLedgerTransactionHeader]
(
[XLedgerTransactionHeaderId] [int] NOT NULL IDENTITY(1, 1),
[XLedgerDbId] [bigint] NOT NULL,
[XLedgerJournalEntryBatchFid] [int] NOT NULL,
[ArApMatchIdentifier] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ArApExternalIdentifier] [nvarchar] (25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SubledgerTransactionXLedgerDbId] [bigint] NULL,
[XLedgerTransactionHoldStatusFid] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerTransactionHeader] ADD CONSTRAINT [PK_XLedgerTransactionHeader] PRIMARY KEY CLUSTERED  ([XLedgerTransactionHeaderId]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_XLedgerTransactionHeader_ArApMatchIdentifier] ON [dbo].[XLedgerTransactionHeader] ([ArApMatchIdentifier]) WHERE ([ArApMatchIdentifier] IS NOT NULL) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_XLedgerTransactionHeader_SubledgerTransactionXLedgerDbId] ON [dbo].[XLedgerTransactionHeader] ([SubledgerTransactionXLedgerDbId]) WHERE ([SubledgerTransactionXLedgerDbId] IS NOT NULL) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_XLedgerTransactionHeader_XLedgerDbId] ON [dbo].[XLedgerTransactionHeader] ([XLedgerDbId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerTransactionHeader] ADD CONSTRAINT [FK_XLedgerTransactionHeader_XLedgerJournalEntryBatch] FOREIGN KEY ([XLedgerJournalEntryBatchFid]) REFERENCES [dbo].[XLedgerJournalEntryBatch] ([XLedgerJournalEntryBatchId])
GO
ALTER TABLE [dbo].[XLedgerTransactionHeader] ADD CONSTRAINT [FK_XLedgerTransactionHeader_XLedgerTransactionHoldStatus] FOREIGN KEY ([XLedgerTransactionHoldStatusFid]) REFERENCES [dbo].[XLedgerTransactionHoldStatus] ([XLedgerTransactionHoldStatusId])
GO
GRANT SELECT ON  [dbo].[XLedgerTransactionHeader] TO [MssExec]
GRANT INSERT ON  [dbo].[XLedgerTransactionHeader] TO [MssExec]
GRANT DELETE ON  [dbo].[XLedgerTransactionHeader] TO [MssExec]
GRANT UPDATE ON  [dbo].[XLedgerTransactionHeader] TO [MssExec]
GO
Uses
Used By