Tables [dbo].[XLedgerAccountingPeriod]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created6:57:00 AM Friday, September 12, 2025
Last Modified6:57:03 AM Friday, September 12, 2025
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XLedgerAccountingPeriod: XLedgerAccountingPeriodIdXLedgerAccountingPeriodIdint4
No
1 - 1
ExternalDbIdint4
No
Cluster Key IX_XLedgerAccountingPeriod_FromDate_ToDate: FromDate\ToDateFromDatedate3
No
Cluster Key IX_XLedgerAccountingPeriod_FromDate_ToDate: FromDate\ToDateToDatedate3
No
FiscalYearint4
No
FiscalPeriodint4
No
Codenvarchar(32)64
No
Openbit1
No
Descriptionnvarchar(32)64
No
CreatedOndatetimeoffset10
No
LastImportedOndatetimeoffset10
No
OpenStatusChangedOndatetimeoffset10
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XLedgerAccountingPeriod: XLedgerAccountingPeriodIdPK_XLedgerAccountingPeriodXLedgerAccountingPeriodId
Yes
Cluster Key IX_XLedgerAccountingPeriod_FromDate_ToDate: FromDate\ToDateIX_XLedgerAccountingPeriod_FromDate_ToDateFromDate, ToDate
Yes
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XLedgerAccountingPeriod]
(
[XLedgerAccountingPeriodId] [int] NOT NULL IDENTITY(1, 1),
[ExternalDbId] [int] NOT NULL,
[FromDate] [date] NOT NULL,
[ToDate] [date] NOT NULL,
[FiscalYear] [int] NOT NULL,
[FiscalPeriod] [int] NOT NULL,
[Code] [nvarchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Open] [bit] NOT NULL,
[Description] [nvarchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreatedOn] [datetimeoffset] NOT NULL,
[LastImportedOn] [datetimeoffset] NOT NULL,
[OpenStatusChangedOn] [datetimeoffset] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerAccountingPeriod] ADD CONSTRAINT [PK_XLedgerAccountingPeriod] PRIMARY KEY NONCLUSTERED  ([XLedgerAccountingPeriodId]) ON [PRIMARY]
GO
CREATE UNIQUE CLUSTERED INDEX [IX_XLedgerAccountingPeriod_FromDate_ToDate] ON [dbo].[XLedgerAccountingPeriod] ([FromDate], [ToDate]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[XLedgerAccountingPeriod] TO [MssExec]
GRANT INSERT ON  [dbo].[XLedgerAccountingPeriod] TO [MssExec]
GRANT DELETE ON  [dbo].[XLedgerAccountingPeriod] TO [MssExec]
GRANT UPDATE ON  [dbo].[XLedgerAccountingPeriod] TO [MssExec]
GO
Uses
Used By