Tables [dbo].[AlternateBillTo]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)2514
Created4:57:09 PM Thursday, September 7, 2006
Last Modified9:12:02 AM Wednesday, January 29, 2025
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_AlternateBillTo: ABTPriKeyABTPriKeyint4
No
1 - 1
Indexes IX_AlternateBillTo_CustomerNumber_CustomerAddressCode: CustomerNumber\CustomerAddressCodeCustomerNumbervarchar(15)15
Yes
Indexes IX_AlternateBillTo_CustomerNumber_CustomerAddressCode: CustomerNumber\CustomerAddressCodeCustomerAddressCodevarchar(15)15
Yes
Foreign Keys FK_AlternateBillTo_AccountingCustomer: [dbo].[AccountingCustomer].AccountingCustomerFidIndexes IX_AlternateBillTo_AccountingCustomerFid: AccountingCustomerFidAccountingCustomerFidint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_AlternateBillTo: ABTPriKeyPK_AlternateBillToABTPriKey
Yes
80
IX_AlternateBillTo_CustomerNumber_CustomerAddressCodeCustomerNumber, CustomerAddressCode
Yes
80
IX_AlternateBillTo_AccountingCustomerFidAccountingCustomerFid
Foreign Keys Foreign Keys
NameColumns
FK_AlternateBillTo_AccountingCustomerAccountingCustomerFid->[dbo].[AccountingCustomer].[AccountingCustomerId]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AlternateBillTo]
(
[ABTPriKey] [int] NOT NULL IDENTITY(1, 1),
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CustomerAddressCode] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AccountingCustomerFid] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AlternateBillTo] ADD CONSTRAINT [PK_AlternateBillTo] PRIMARY KEY CLUSTERED  ([ABTPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AlternateBillTo] ADD CONSTRAINT [IX_AlternateBillTo_CustomerNumber_CustomerAddressCode] UNIQUE NONCLUSTERED  ([CustomerNumber], [CustomerAddressCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_AlternateBillTo_AccountingCustomerFid] ON [dbo].[AlternateBillTo] ([AccountingCustomerFid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AlternateBillTo] ADD CONSTRAINT [FK_AlternateBillTo_AccountingCustomer] FOREIGN KEY ([AccountingCustomerFid]) REFERENCES [dbo].[AccountingCustomer] ([AccountingCustomerId])
GO
GRANT SELECT ON  [dbo].[AlternateBillTo] TO [MssExec]
GRANT INSERT ON  [dbo].[AlternateBillTo] TO [MssExec]
GRANT DELETE ON  [dbo].[AlternateBillTo] TO [MssExec]
GRANT UPDATE ON  [dbo].[AlternateBillTo] TO [MssExec]
GO
Uses
Used By