Sales.CustomerAddress

Table: 'Sales.CustomerAddress'

5 fields. 44 bytes.

Cross-reference table mapping customers to their address(es).

Field NameData TypeSizeOriginal TypeDefaultNullableDescriptionCheck
CustomerIDint   Not nullPrimary key. Foreign key to Customer.CustomerID. 
AddressIDint   Not nullPrimary key. Foreign key to Address.AddressID. 
AddressTypeIDint   Not nullAddress type. Foreign key to AddressType.AddressTypeID. 
rowguiduniqueidentifier  newid()Not nullROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. 
ModifiedDatedatetime  getdate()Not nullDate and time the record was last updated. 

Extended Properties

The object has no extended properties.

Primary key for table 'Sales.CustomerAddress'

Primary Key NameField Names
PK_CustomerAddress_CustomerID_AddressIDCustomerID, AddressID

Foreign keys for table 'Sales.CustomerAddress', 3 items

ForeignPrimaryKey Name
CustomerAddress.AddressIDAddress.AddressIDFK_CustomerAddress_Address_AddressID
CustomerAddress.AddressTypeIDAddressType.AddressTypeIDFK_CustomerAddress_AddressType_AddressTypeID
CustomerAddress.CustomerIDCustomer.CustomerIDFK_CustomerAddress_Customer_CustomerID

Indexes for table 'Sales.CustomerAddress', 2 items

Index NameDescriptionClusteredUniqueFields
PK_CustomerAddress_CustomerID_AddressIDClustered index created by a primary key constraint.YesYesCustomerID, AddressID
AK_CustomerAddress_rowguidUnique nonclustered index. Used to support replication samples.NoYesrowguid

Triggers for table 'Sales.CustomerAddress', 1 item

NameDescriptionTypeEnabled
uCustomerAddressAFTER UPDATE trigger setting the ModifiedDate column in the CustomerAddress table to the current date.after Update Yes

Dependencies for table 'Sales.CustomerAddress', 3 items

Object NameTypeField Name
Sales.uCustomerAddresstriggerN/A
Sales.vIndividualCustomerviewN/A
Sales.vStoreWithDemographicsviewN/A