Sales.CustomerAddress Table
Information
| Name | CustomerAddress |
| Schema | Sales |
| Row Count | 0 |
| Data Size | |
| Index Size | |
| Reserved Size | |
| Unused Size | |
| Created | 29.3.2010. 21:58:18 |
| Modified | 29.3.2010. 21:58:54 |
Extended Properties
| Name | Type | Property Name | Value |
| CustomerAddress | TABLE | MS_Description | Cross-reference table mapping customers to their address(es). |
Columns
| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|   |   |   | CustomerID | int |   | | Sales.Customer.CustomerID | |   | |
|   |   |   | AddressID | int |   | | Person.Address.AddressID | |   | |
| |   |   | AddressTypeID | int |   | | Person.AddressType.AddressTypeID | |   | |
| |   |   | rowguid | uniqueidentifier |   | | | (newid()) |   | |
| |   |   | ModifiedDate | datetime |   | | | (getdate()) |   | |
Indexes
Foreign Key Constraints
SQL Script
CREATE TABLE [Sales].[CustomerAddress] (
[CustomerID] int NOT NULL,
[AddressID] int NOT NULL,
[AddressTypeID] int NOT NULL,
[rowguid] uniqueidentifier NOT NULL DEFAULT (newid()),
[ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_CustomerAddress_rowguid] on [Sales].[CustomerAddress]([rowguid]);