Tables [dbo].[XLedgerCustomer]
Properties
PropertyValue
Row Count (~)0
Created8:55:50 AM Thursday, December 5, 2024
Last Modified8:55:50 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XLedgerCustomer: XLedgerCustomerIdCluster Key IX_XLedgerCustomer_ExternalDbId: XLedgerCustomerIdXLedgerCustomerIdint4
No
1 - 1
ExternalDbIdint4
No
Foreign Keys FK_XLedgerCustomer_AccountingCustomer: [dbo].[AccountingCustomer].AccountingCustomerFidAccountingCustomerFidint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XLedgerCustomer: XLedgerCustomerIdPK_XLedgerCustomerXLedgerCustomerId
Yes
Cluster Key IX_XLedgerCustomer_ExternalDbId: XLedgerCustomerIdIX_XLedgerCustomer_ExternalDbIdXLedgerCustomerId
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XLedgerCustomer_AccountingCustomerAccountingCustomerFid->[dbo].[AccountingCustomer].[AccountingCustomerId]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XLedgerCustomer]
(
[XLedgerCustomerId] [int] NOT NULL IDENTITY(1, 1),
[ExternalDbId] [int] NOT NULL,
[AccountingCustomerFid] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerCustomer] ADD CONSTRAINT [PK_XLedgerCustomer] PRIMARY KEY NONCLUSTERED  ([XLedgerCustomerId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerCustomer] ADD CONSTRAINT [IX_XLedgerCustomer_ExternalDbId] UNIQUE CLUSTERED  ([XLedgerCustomerId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerCustomer] ADD CONSTRAINT [FK_XLedgerCustomer_AccountingCustomer] FOREIGN KEY ([AccountingCustomerFid]) REFERENCES [dbo].[AccountingCustomer] ([AccountingCustomerId])
GO
GRANT SELECT ON  [dbo].[XLedgerCustomer] TO [MssExec]
GRANT INSERT ON  [dbo].[XLedgerCustomer] TO [MssExec]
GRANT DELETE ON  [dbo].[XLedgerCustomer] TO [MssExec]
GRANT UPDATE ON  [dbo].[XLedgerCustomer] TO [MssExec]
GO
Uses
Used By