Difference between revisions of "Person.AddressType (table)"

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| Person.AddressType
 
| Person.AddressType
 +
|- valign="top"
 +
| '''Description
 +
| Types of addresses stored in the Address table.
 
|-
 
|-
 
|}
 
|}
Line 15: Line 18:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description / PK / Index
| '''Index
 
 
 
|-
+
|- valign="top"
 
| AddressTypeID
 
| AddressTypeID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| PK_AddressType_AddressTypeID
+
| Primary key for AddressType records.<br />PK_AddressType_AddressTypeID
|
+
|- valign="top"
|-
 
 
| Name
 
| Name
 
| dbo.Name
 
| dbo.Name
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Address type description. For example, Billing, Home, or Shipping.<br />AK_AddressType_Name
| AK_AddressType_Name
+
|- valign="top"
|-
 
 
| rowguid
 
| rowguid
 
| uniqueidentifier
 
| uniqueidentifier
 
| not null
 
| not null
 
| (newid())
 
| (newid())
|  
+
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_AddressType_rowguid
| AK_AddressType_rowguid
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| Date and time the record was last updated.<br />
|
 
 
|}
 
|}
  
Line 65: Line 63:
 
| AddressTypeID
 
| AddressTypeID
 
|}
 
|}
 +
 +
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Dependency Type
 +
| '''Object Type
 +
| '''Referenced Object
 +
 +
|-
 +
| Data Type
 +
| Type
 +
| [[dbo.Name_(type)|dbo.Name]]
 +
 +
|}
 +
 +
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Reference Type
 +
| '''Object Type
 +
| '''Referencing Object
 +
 +
|-
 +
| Select
 +
| View
 +
| [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]]
 +
 +
|-
 +
| Select
 +
| View
 +
| [[Sales.vStoreWithDemographics_(view)|Sales.vStoreWithDemographics]]
 +
 +
|}
 +
 +
 +
 
== wikivalues ==
 
== wikivalues ==
  

Revision as of 23:54, 28 December 2009

wikibot

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 dbo.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


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