Difference between revisions of "Person.AddressType (table)"
| Line 12: | Line 12: | ||
| + | === Columns === | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
| Line 18: | Line 19: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
| − | | '''Description | + | | '''Description |
|- valign="top" | |- valign="top" | ||
| Line 25: | Line 26: | ||
| not null | | not null | ||
| | | | ||
| − | | Primary key for AddressType records. | + | | Primary key for AddressType records. |
|- valign="top" | |- valign="top" | ||
| Name | | Name | ||
| Line 31: | Line 32: | ||
| not null | | not null | ||
| | | | ||
| − | | Address type description. For example, Billing, Home, or Shipping. | + | | Address type description. For example, Billing, Home, or Shipping. |
|- valign="top" | |- valign="top" | ||
| rowguid | | rowguid | ||
| Line 37: | Line 38: | ||
| not null | | not null | ||
| (newid()) | | (newid()) | ||
| − | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
| Line 43: | Line 44: | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
| − | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
|} | |} | ||
| + | === Primary Key === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Primary Key | ||
| + | | '''Columns | ||
| + | |- | ||
| + | | PK_AddressType_AddressTypeID | ||
| + | | AddressTypeID | ||
| + | |} | ||
| + | === Indexes === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Index | ||
| + | | '''Type | ||
| + | | '''Columns | ||
| + | |||
| + | |- | ||
| + | | AK_AddressType_rowguid | ||
| + | | Unique | ||
| + | | rowguid | ||
| + | |- | ||
| + | | AK_AddressType_Name | ||
| + | | Unique | ||
| + | | Name | ||
| + | |} | ||
| + | === Detail Tables === | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
| Line 64: | Line 91: | ||
|} | |} | ||
| − | + | === References === | |
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
| Line 75: | Line 102: | ||
| Type | | Type | ||
| [[dbo.Name_(type)|dbo.Name]] | | [[dbo.Name_(type)|dbo.Name]] | ||
| + | |||
| + | |- | ||
| + | | Schema | ||
| + | | Schema | ||
| + | | [[Person_(schema)|Person]] | ||
|} | |} | ||
| − | + | === Dependencies === | |
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
| Line 96: | Line 128: | ||
|} | |} | ||
| + | |||
| + | |||
== wikivalues == | == wikivalues == | ||
Revision as of 23:06, 2 February 2010
Contents
wikibot
| Table | Person.AddressType |
| Description | Types of addresses stored in the Address table. |
Columns
| Column | Data Type | Nullable | Default | Description |
| AddressTypeID | int | not null | Primary key for AddressType records. | |
| Name | dbo.Name | not null | Address type description. For example, Billing, Home, or Shipping. | |
| rowguid | uniqueidentifier | not null | (newid()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. |
| ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
Primary Key
| Primary Key | Columns |
| PK_AddressType_AddressTypeID | AddressTypeID |
Indexes
| Index | Type | Columns |
| AK_AddressType_rowguid | Unique | rowguid |
| AK_AddressType_Name | Unique | Name |
Detail Tables
| Detail Table | Column | Referencing Column |
| Sales.CustomerAddress | AddressTypeID | AddressTypeID |
| Purchasing.VendorAddress | AddressTypeID | AddressTypeID |
References
| Dependency Type | Object Type | Referenced Object |
| Data Type | Type | dbo.Name |
| Schema | Schema | Person |
Dependencies
| Reference Type | Object Type | Referencing Object |
| Select | View | Sales.vIndividualCustomer |
| Select | View | Sales.vStoreWithDemographics |
wikivalues
| Table Values | Person.AddressType |
| AddressTypeID | Name |
| 6 | Archive |
| 1 | Billing |
| 2 | Home |
| 3 | Main Office |
| 4 | Primary |
| 5 | Shipping |
automatically generated
| Table | Person.AddressType |
| Description | Types of addresses stored in the Address table. |
| Column | Data Type | Nullable | Default | Description / PK / Index |
| AddressTypeID | int | not null | Primary key for AddressType records. PK_AddressType_AddressTypeID | |
| Name | Name | not null | Address type description. For example, Billing, Home, or Shipping. AK_AddressType_Name | |
| rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_AddressType_rowguid |
| ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
| Detail Table | Column | Referencing Column |
| Sales.CustomerAddress | AddressTypeID | AddressTypeID |
| Purchasing.VendorAddress | AddressTypeID | AddressTypeID |
| Dependency Type | Object Type | Referenced Object |
| Data Type | Type | dbo.Name |
| Schema | Schema | Person |
| Reference Type | Object Type | Referencing Object |
| Select | View | Sales.vIndividualCustomer |
| Select | View | Sales.vStoreWithDemographics |