Tables [dbo].[InternationalConsolidatorAddress]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created10:12:49 PM Thursday, December 28, 2006
Last Modified11:13:39 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_InternationalConsolidatorAddress: InternationalConsolidatorAddressIDInternationalConsolidatorAddressIDint4
No
1 - 1
Foreign Keys FK_InternationalConsolidatorAddress_InternationalConsolidator: [dbo].[InternationalConsolidator].InternationalConsolidatorFIDIndexes IX_InternationalConsolidator_AddressType: InternationalConsolidatorFID\AddressTypeFIDInternationalConsolidatorFIDint4
No
Foreign Keys FK_InternationalConsolidatorAddress_AddressType: [dbo].[AddressType].AddressTypeFIDCheck Constraints CK_InternationalConsolidatorAddress_AddressType : ([dbo].[GetAddressTypeName]([AddressTypeFID])='Main')Indexes IX_InternationalConsolidator_AddressType: InternationalConsolidatorFID\AddressTypeFIDAddressTypeFIDint4
Yes
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_InternationalConsolidatorAddress_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_InternationalConsolidatorAddress: InternationalConsolidatorAddressIDPK_InternationalConsolidatorAddressInternationalConsolidatorAddressID
Yes
80
IX_InternationalConsolidator_AddressTypeInternationalConsolidatorFID, AddressTypeFID
Yes
80
Check Constraints Check Constraints
NameOn ColumnConstraint
CK_InternationalConsolidatorAddress_AddressTypeAddressTypeFID([dbo].[GetAddressTypeName]([AddressTypeFID])='Main')
Foreign Keys Foreign Keys
NameDeleteColumns
FK_InternationalConsolidatorAddress_AddressTypeAddressTypeFID->[dbo].[AddressType].[AddressTypeID]
FK_InternationalConsolidatorAddress_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
FK_InternationalConsolidatorAddress_InternationalConsolidatorCascadeInternationalConsolidatorFID->[dbo].[InternationalConsolidator].[InternationalConsolidatorID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[InternationalConsolidatorAddress]
(
[InternationalConsolidatorAddressID] [int] NOT NULL IDENTITY(1, 1),
[InternationalConsolidatorFID] [int] NOT NULL,
[AddressTypeFID] [int] 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].[InternationalConsolidatorAddress] ADD CONSTRAINT [CK_InternationalConsolidatorAddress_AddressType] CHECK (([dbo].[GetAddressTypeName]([AddressTypeFID])='Main'))
GO
ALTER TABLE [dbo].[InternationalConsolidatorAddress] ADD CONSTRAINT [PK_InternationalConsolidatorAddress] PRIMARY KEY CLUSTERED  ([InternationalConsolidatorAddressID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalConsolidatorAddress] ADD CONSTRAINT [IX_InternationalConsolidator_AddressType] UNIQUE NONCLUSTERED  ([InternationalConsolidatorFID], [AddressTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalConsolidatorAddress] ADD CONSTRAINT [FK_InternationalConsolidatorAddress_AddressType] FOREIGN KEY ([AddressTypeFID]) REFERENCES [dbo].[AddressType] ([AddressTypeID])
GO
ALTER TABLE [dbo].[InternationalConsolidatorAddress] ADD CONSTRAINT [FK_InternationalConsolidatorAddress_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
ALTER TABLE [dbo].[InternationalConsolidatorAddress] ADD CONSTRAINT [FK_InternationalConsolidatorAddress_InternationalConsolidator] FOREIGN KEY ([InternationalConsolidatorFID]) REFERENCES [dbo].[InternationalConsolidator] ([InternationalConsolidatorID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[InternationalConsolidatorAddress] TO [MssExec]
GRANT INSERT ON  [dbo].[InternationalConsolidatorAddress] TO [MssExec]
GRANT DELETE ON  [dbo].[InternationalConsolidatorAddress] TO [MssExec]
GRANT UPDATE ON  [dbo].[InternationalConsolidatorAddress] TO [MssExec]
GO
Uses
Used By