| Field Name | Data Type | Size | Original Type | Default | Nullable | Description | Check |
|---|---|---|---|---|---|---|---|
| AddressID | int identity | int | Not null | Primary key for Address records. | |||
| AddressLine1 | nvarchar | 60 | Not null | First street address line. | |||
| AddressLine2 | nvarchar | 60 | Null | Second street address line. | |||
| City | nvarchar | 30 | Not null | Name of the city. | |||
| StateProvinceID | int | Not null | Unique identification number for the state or province. Foreign key to StateProvince table. | ||||
| PostalCode | nvarchar | 15 | Not null | Postal code for the street address. | |||
| rowguid | uniqueidentifier | newid() | Not null | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | |||
| ModifiedDate | datetime | getdate() | Not null | Date and time the record was last updated. |
The object has no extended properties.
| Primary Key Name | Field Name |
|---|---|
| PK_Address_AddressID | AddressID |
| Foreign | Primary | Key Name |
|---|---|---|
| Address.StateProvinceID | StateProvince.StateProvinceID | FK_Address_StateProvince_StateProvinceID |
| Index Name | Description | Clustered | Unique | Fields |
|---|---|---|---|---|
| PK_Address_AddressID | Clustered index created by a primary key constraint. | Yes | Yes | AddressID |
| AK_Address_rowguid | Unique nonclustered index. Used to support replication samples. | No | Yes | rowguid |
| IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode | Nonclustered index. | No | Yes | AddressLine1, AddressLine2, City, StateProvinceID, PostalCode |
| IX_Address_StateProvinceID | Nonclustered index. | No | No | StateProvinceID |
| Name | Description | Type | Enabled |
|---|---|---|---|
| uAddress | AFTER UPDATE trigger setting the ModifiedDate column in the Address table to the current date. | after Update | Yes |
| Object Name | Type | Field Name |
|---|---|---|
| HumanResources.vEmployee | view | N/A |
| Person.uAddress | trigger | N/A |
| Purchasing.vVendor | view | N/A |
| Sales.vIndividualCustomer | view | N/A |
| Sales.vSalesPerson | view | N/A |
| Sales.vStoreWithDemographics | view | N/A |