Tables [dbo].[AccountingCustomerAddress]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
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
Primary Key PK_AccountingCustomerAddress: AccountingCustomerAddressIdAccountingCustomerAddressIdint4
No
1 - 1
Cluster Key IX_AccountingCustomerAddress_AccountingCustomerFid_AccountingCustomerAddressTypeFid: AccountingCustomerFid\AccountingCustomerAddressTypeFidForeign Keys FK_AccountingCustomerAddress_AccountingCustomer: [dbo].[AccountingCustomer].AccountingCustomerFidAccountingCustomerFidint4
No
Cluster Key IX_AccountingCustomerAddress_AccountingCustomerFid_AccountingCustomerAddressTypeFid: AccountingCustomerFid\AccountingCustomerAddressTypeFidForeign Keys FK_AccountingCustomerAddress_AccountingCustomerAddressType: [dbo].[AccountingCustomerAddressType].AccountingCustomerAddressTypeFidAccountingCustomerAddressTypeFidint4
No
Address1[dbo].[Address]256
Yes
Address2[dbo].[Address]256
Yes
Address3[dbo].[Address]256
Yes
City[dbo].[AddressCity]26
Yes
State[dbo].[AddressState]2
Yes
PostalCode[dbo].[AddressPostalCode]10
Yes
Foreign Keys FK_AccountingCustomerAddress_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_AccountingCustomerAddress: AccountingCustomerAddressIdPK_AccountingCustomerAddressAccountingCustomerAddressId
Yes
Cluster Key IX_AccountingCustomerAddress_AccountingCustomerFid_AccountingCustomerAddressTypeFid: AccountingCustomerFid\AccountingCustomerAddressTypeFidIX_AccountingCustomerAddress_AccountingCustomerFid_AccountingCustomerAddressTypeFidAccountingCustomerFid, AccountingCustomerAddressTypeFid
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_AccountingCustomerAddress_AccountingCustomerAddressTypeAccountingCustomerAddressTypeFid->[dbo].[AccountingCustomerAddressType].[AccountingCustomerAddressTypeId]
FK_AccountingCustomerAddress_AccountingCustomerCascadeAccountingCustomerFid->[dbo].[AccountingCustomer].[AccountingCustomerId]
FK_AccountingCustomerAddress_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AccountingCustomerAddress]
(
[AccountingCustomerAddressId] [int] NOT NULL IDENTITY(1, 1),
[AccountingCustomerFid] [int] NOT NULL,
[AccountingCustomerAddressTypeFid] [int] NOT NULL,
[Address1] [dbo].[Address] NULL,
[Address2] [dbo].[Address] NULL,
[Address3] [dbo].[Address] NULL,
[City] [dbo].[AddressCity] NULL,
[State] [dbo].[AddressState] NULL,
[PostalCode] [dbo].[AddressPostalCode] NULL,
[CountryCodeStandardFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingCustomerAddress] ADD CONSTRAINT [PK_AccountingCustomerAddress] PRIMARY KEY NONCLUSTERED  ([AccountingCustomerAddressId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingCustomerAddress] ADD CONSTRAINT [IX_AccountingCustomerAddress_AccountingCustomerFid_AccountingCustomerAddressTypeFid] UNIQUE CLUSTERED  ([AccountingCustomerFid], [AccountingCustomerAddressTypeFid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingCustomerAddress] ADD CONSTRAINT [FK_AccountingCustomerAddress_AccountingCustomerAddressType] FOREIGN KEY ([AccountingCustomerAddressTypeFid]) REFERENCES [dbo].[AccountingCustomerAddressType] ([AccountingCustomerAddressTypeId])
GO
ALTER TABLE [dbo].[AccountingCustomerAddress] ADD CONSTRAINT [FK_AccountingCustomerAddress_AccountingCustomer] FOREIGN KEY ([AccountingCustomerFid]) REFERENCES [dbo].[AccountingCustomer] ([AccountingCustomerId]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[AccountingCustomerAddress] ADD CONSTRAINT [FK_AccountingCustomerAddress_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
GRANT SELECT ON  [dbo].[AccountingCustomerAddress] TO [MssExec]
GRANT INSERT ON  [dbo].[AccountingCustomerAddress] TO [MssExec]
GRANT DELETE ON  [dbo].[AccountingCustomerAddress] TO [MssExec]
GRANT UPDATE ON  [dbo].[AccountingCustomerAddress] TO [MssExec]
GO
Uses
Used By