Tables [dbo].[AccountingVendorAddress]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
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_AccountingVendorAddress: AccountingVendorAddressIdAccountingVendorAddressIdint4
No
1 - 1
Cluster Key IX_AccountingVendorAddress_AccountingVendorFid_AccountingVendorAddressTypeFid: AccountingVendorFid\AccountingVendorAddressTypeFidForeign Keys FK_AccountingVendorAddress_AccountingVendor: [dbo].[AccountingVendor].AccountingVendorFidAccountingVendorFidint4
No
Cluster Key IX_AccountingVendorAddress_AccountingVendorFid_AccountingVendorAddressTypeFid: AccountingVendorFid\AccountingVendorAddressTypeFidForeign Keys FK_AccountingVendorAddress_AccountingVendorAddressType: [dbo].[AccountingVendorAddressType].AccountingVendorAddressTypeFidAccountingVendorAddressTypeFidint4
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_AccountingVendorAddress_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_AccountingVendorAddress: AccountingVendorAddressIdPK_AccountingVendorAddressAccountingVendorAddressId
Yes
Cluster Key IX_AccountingVendorAddress_AccountingVendorFid_AccountingVendorAddressTypeFid: AccountingVendorFid\AccountingVendorAddressTypeFidIX_AccountingVendorAddress_AccountingVendorFid_AccountingVendorAddressTypeFidAccountingVendorFid, AccountingVendorAddressTypeFid
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_AccountingVendorAddress_AccountingVendorAddressTypeAccountingVendorAddressTypeFid->[dbo].[AccountingVendorAddressType].[AccountingVendorAddressTypeId]
FK_AccountingVendorAddress_AccountingVendorCascadeAccountingVendorFid->[dbo].[AccountingVendor].[AccountingVendorId]
FK_AccountingVendorAddress_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AccountingVendorAddress]
(
[AccountingVendorAddressId] [int] NOT NULL IDENTITY(1, 1),
[AccountingVendorFid] [int] NOT NULL,
[AccountingVendorAddressTypeFid] [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].[AccountingVendorAddress] ADD CONSTRAINT [PK_AccountingVendorAddress] PRIMARY KEY NONCLUSTERED  ([AccountingVendorAddressId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingVendorAddress] ADD CONSTRAINT [IX_AccountingVendorAddress_AccountingVendorFid_AccountingVendorAddressTypeFid] UNIQUE CLUSTERED  ([AccountingVendorFid], [AccountingVendorAddressTypeFid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingVendorAddress] ADD CONSTRAINT [FK_AccountingVendorAddress_AccountingVendorAddressType] FOREIGN KEY ([AccountingVendorAddressTypeFid]) REFERENCES [dbo].[AccountingVendorAddressType] ([AccountingVendorAddressTypeId])
GO
ALTER TABLE [dbo].[AccountingVendorAddress] ADD CONSTRAINT [FK_AccountingVendorAddress_AccountingVendor] FOREIGN KEY ([AccountingVendorFid]) REFERENCES [dbo].[AccountingVendor] ([AccountingVendorId]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[AccountingVendorAddress] ADD CONSTRAINT [FK_AccountingVendorAddress_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
GRANT SELECT ON  [dbo].[AccountingVendorAddress] TO [MssExec]
GRANT INSERT ON  [dbo].[AccountingVendorAddress] TO [MssExec]
GRANT DELETE ON  [dbo].[AccountingVendorAddress] TO [MssExec]
GRANT UPDATE ON  [dbo].[AccountingVendorAddress] TO [MssExec]
GO
Uses
Used By