Tables [dbo].[AccountingCustomer]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created7:46:16 PM Saturday, February 7, 2026
Last Modified7:49:23 PM Saturday, February 7, 2026
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_AccountingCustomer: AccountingCustomerIdAccountingCustomerIdint4
No
1 - 1
Indexes IX_AccountingCustomer_Name: NameNamevarchar(65)65
No
Hiddenbit1
No
((0))
Indexes IX_AccountingCustomer_AccountingCustomerClass_CustomerNumber: AccountingCustomerClassFid\CustomerNumberIndexes IX_AccountingCustomer_AccountingCustomerPaymentTerms_CustomerNumber: AccountingCustomerPaymentTermsFid\CustomerNumberIndexes IX_AccountingCustomer_CustomerNumber: CustomerNumberCustomerNumbervarchar(15)15
No
Emailvarchar(128)128
Yes
OnHoldbit1
No
CreditLimitmoney8
No
NoCreditFlagbit1
No
Phone1varchar(30)30
Yes
Phone2varchar(30)30
Yes
Phone3varchar(30)30
Yes
Faxvarchar(30)30
Yes
Contactvarchar(61)61
Yes
TaxExemptvarchar(25)25
Yes
Foreign Keys FK_AccountingCustomer_AccountingCustomerClass: [dbo].[AccountingCustomerClass].AccountingCustomerClassFidIndexes IX_AccountingCustomer_AccountingCustomerClass_CustomerNumber: AccountingCustomerClassFid\CustomerNumberAccountingCustomerClassFidint4
Yes
Foreign Keys FK_AccountingCustomer_AccountingCustomerPaymentTerms: [dbo].[AccountingCustomerPaymentTerms].AccountingCustomerPaymentTermsFidIndexes IX_AccountingCustomer_AccountingCustomerPaymentTerms_CustomerNumber: AccountingCustomerPaymentTermsFid\CustomerNumberAccountingCustomerPaymentTermsFidint4
Yes
Foreign Keys FK_AccountingCustomer_AccountingCustomerCreditLimitType: [dbo].[AccountingCustomerCreditLimitType].AccountingCustomerCreditLimitTypeFidAccountingCustomerCreditLimitTypeFidint4
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_AccountingCustomer: AccountingCustomerIdPK_AccountingCustomerAccountingCustomerId
Yes
IX_AccountingCustomer_AccountingCustomerClass_CustomerNumberAccountingCustomerClassFid, CustomerNumber
Yes
IX_AccountingCustomer_AccountingCustomerPaymentTerms_CustomerNumberAccountingCustomerPaymentTermsFid, CustomerNumber
Yes
IX_AccountingCustomer_CustomerNumberCustomerNumber
Yes
IX_AccountingCustomer_NameName
Foreign Keys Foreign Keys
NameColumns
FK_AccountingCustomer_AccountingCustomerClassAccountingCustomerClassFid->[dbo].[AccountingCustomerClass].[AccountingCustomerClassId]
FK_AccountingCustomer_AccountingCustomerCreditLimitTypeAccountingCustomerCreditLimitTypeFid->[dbo].[AccountingCustomerCreditLimitType].[AccountingCustomerCreditLimitTypeId]
FK_AccountingCustomer_AccountingCustomerPaymentTermsAccountingCustomerPaymentTermsFid->[dbo].[AccountingCustomerPaymentTerms].[AccountingCustomerPaymentTermsId]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AccountingCustomer]
(
[AccountingCustomerId] [int] NOT NULL IDENTITY(1, 1),
[Name] [varchar] (65) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Hidden] [bit] NOT NULL CONSTRAINT [DF_AccountingCustomer_Hidden] DEFAULT ((0)),
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Email] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[OnHold] [bit] NOT NULL,
[CreditLimit] [money] NOT NULL,
[NoCreditFlag] [bit] NOT NULL,
[Phone1] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Phone2] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Phone3] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Fax] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Contact] [varchar] (61) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TaxExempt] [varchar] (25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AccountingCustomerClassFid] [int] NULL,
[AccountingCustomerPaymentTermsFid] [int] NULL,
[AccountingCustomerCreditLimitTypeFid] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingCustomer] ADD CONSTRAINT [PK_AccountingCustomer] PRIMARY KEY CLUSTERED  ([AccountingCustomerId]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_AccountingCustomer_AccountingCustomerClass_CustomerNumber] ON [dbo].[AccountingCustomer] ([AccountingCustomerClassFid], [CustomerNumber]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_AccountingCustomer_AccountingCustomerPaymentTerms_CustomerNumber] ON [dbo].[AccountingCustomer] ([AccountingCustomerPaymentTermsFid], [CustomerNumber]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_AccountingCustomer_CustomerNumber] ON [dbo].[AccountingCustomer] ([CustomerNumber]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_AccountingCustomer_Name] ON [dbo].[AccountingCustomer] ([Name]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingCustomer] ADD CONSTRAINT [FK_AccountingCustomer_AccountingCustomerClass] FOREIGN KEY ([AccountingCustomerClassFid]) REFERENCES [dbo].[AccountingCustomerClass] ([AccountingCustomerClassId])
GO
ALTER TABLE [dbo].[AccountingCustomer] ADD CONSTRAINT [FK_AccountingCustomer_AccountingCustomerCreditLimitType] FOREIGN KEY ([AccountingCustomerCreditLimitTypeFid]) REFERENCES [dbo].[AccountingCustomerCreditLimitType] ([AccountingCustomerCreditLimitTypeId])
GO
ALTER TABLE [dbo].[AccountingCustomer] ADD CONSTRAINT [FK_AccountingCustomer_AccountingCustomerPaymentTerms] FOREIGN KEY ([AccountingCustomerPaymentTermsFid]) REFERENCES [dbo].[AccountingCustomerPaymentTerms] ([AccountingCustomerPaymentTermsId])
GO
GRANT SELECT ON  [dbo].[AccountingCustomer] TO [MssExec]
GRANT INSERT ON  [dbo].[AccountingCustomer] TO [MssExec]
GRANT DELETE ON  [dbo].[AccountingCustomer] TO [MssExec]
GRANT UPDATE ON  [dbo].[AccountingCustomer] TO [MssExec]
GO
Uses
Used By