Tables [dbo].[XLedgerAccount]
Properties
PropertyValue
Row Count (~)0
Created3:08:23 PM Tuesday, June 24, 2025
Last Modified3:08:23 PM Tuesday, June 24, 2025
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XLedgerAccount: XLedgerAccountIdCluster Key IX_XLedgerAccount_ExternalDbId: XLedgerAccountIdXLedgerAccountIdint4
No
1 - 1
ExternalDbIdbigint8
No
CreatedOndatetimeoffset10
No
LastImportedOndatetimeoffset10
No
Foreign Keys FK_XLedgerAccount_AccountingAccount: [dbo].[AccountingAccount].AccountingAccountFidIndexes IX_XLedgerAccount_AccountingAccountFid: AccountingAccountFidAccountingAccountFidint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XLedgerAccount: XLedgerAccountIdPK_XLedgerAccountXLedgerAccountId
Yes
IX_XLedgerAccount_AccountingAccountFidAccountingAccountFid
Yes
Cluster Key IX_XLedgerAccount_ExternalDbId: XLedgerAccountIdIX_XLedgerAccount_ExternalDbIdXLedgerAccountId
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XLedgerAccount_AccountingAccountAccountingAccountFid->[dbo].[AccountingAccount].[AccountingAccountId]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XLedgerAccount]
(
[XLedgerAccountId] [int] NOT NULL IDENTITY(1, 1),
[ExternalDbId] [bigint] NOT NULL,
[CreatedOn] [datetimeoffset] NOT NULL,
[LastImportedOn] [datetimeoffset] NOT NULL,
[AccountingAccountFid] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerAccount] ADD CONSTRAINT [PK_XLedgerAccount] PRIMARY KEY NONCLUSTERED  ([XLedgerAccountId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerAccount] ADD CONSTRAINT [IX_XLedgerAccount_AccountingAccountFid] UNIQUE NONCLUSTERED  ([AccountingAccountFid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerAccount] ADD CONSTRAINT [IX_XLedgerAccount_ExternalDbId] UNIQUE CLUSTERED  ([XLedgerAccountId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerAccount] ADD CONSTRAINT [FK_XLedgerAccount_AccountingAccount] FOREIGN KEY ([AccountingAccountFid]) REFERENCES [dbo].[AccountingAccount] ([AccountingAccountId])
GO
GRANT SELECT ON  [dbo].[XLedgerAccount] TO [MssExec]
GRANT INSERT ON  [dbo].[XLedgerAccount] TO [MssExec]
GRANT DELETE ON  [dbo].[XLedgerAccount] TO [MssExec]
GRANT UPDATE ON  [dbo].[XLedgerAccount] TO [MssExec]
GO
Uses
Used By