Tables [dbo].[XLedgerSyncHistory]
Properties
PropertyValue
Row Count (~)0
Created9:07:22 AM Friday, November 22, 2024
Last Modified9:07:23 AM Friday, November 22, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_XLedgerSyncHistory: XLedgerSyncHistoryIdXLedgerSyncHistoryIdint4
No
1 - 1
Foreign Keys FK_XLedgerSyncHistory_XLedgerSyncEntityType: [dbo].[XLedgerSyncEntityType].XLedgerSyncEntityTypeFidXLedgerSyncEntityTypeFidint4
No
SyncStarteddatetimeoffset10
No
SyncCompleteddatetimeoffset10
Yes
UpToDateAsOfdatetimeoffset10
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_XLedgerSyncHistory: XLedgerSyncHistoryIdPK_XLedgerSyncHistoryXLedgerSyncHistoryId
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XLedgerSyncHistory_XLedgerSyncEntityTypeXLedgerSyncEntityTypeFid->[dbo].[XLedgerSyncEntityType].[XLedgerSyncEntityTypeId]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XLedgerSyncHistory]
(
[XLedgerSyncHistoryId] [int] NOT NULL IDENTITY(1, 1),
[XLedgerSyncEntityTypeFid] [int] NOT NULL,
[SyncStarted] [datetimeoffset] NOT NULL,
[SyncCompleted] [datetimeoffset] NULL,
[UpToDateAsOf] [datetimeoffset] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerSyncHistory] ADD CONSTRAINT [PK_XLedgerSyncHistory] PRIMARY KEY CLUSTERED  ([XLedgerSyncHistoryId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerSyncHistory] ADD CONSTRAINT [FK_XLedgerSyncHistory_XLedgerSyncEntityType] FOREIGN KEY ([XLedgerSyncEntityTypeFid]) REFERENCES [dbo].[XLedgerSyncEntityType] ([XLedgerSyncEntityTypeId])
GO
GRANT SELECT ON  [dbo].[XLedgerSyncHistory] TO [MssExec]
GRANT INSERT ON  [dbo].[XLedgerSyncHistory] TO [MssExec]
GRANT DELETE ON  [dbo].[XLedgerSyncHistory] TO [MssExec]
GRANT UPDATE ON  [dbo].[XLedgerSyncHistory] TO [MssExec]
GO
Uses
Used By