Difference between revisions of "Person.Contact (table)"
Line 5: | Line 5: | ||
| '''Table | | '''Table | ||
| Person.Contact | | Person.Contact | ||
+ | |- valign="top" | ||
+ | | '''Description | ||
+ | | Names of each employee, customer contact, and vendor contact. | ||
|- | |- | ||
|} | |} | ||
Line 15: | Line 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''PK | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| ContactID | | ContactID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | PK_Contact_ContactID | + | | Primary key for Contact records.<br />PK_Contact_ContactID |
− | + | |- valign="top" | |
− | |- | ||
| NameStyle | | NameStyle | ||
| dbo.NameStyle | | dbo.NameStyle | ||
| not null | | not null | ||
| ((0)) | | ((0)) | ||
− | | | + | | 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| Title | | Title | ||
| nvarchar(8) | | nvarchar(8) | ||
| null | | null | ||
| | | | ||
− | | | + | | A courtesy title. For example, Mr. or Ms.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| FirstName | | FirstName | ||
| dbo.Name | | dbo.Name | ||
| not null | | not null | ||
| | | | ||
− | | | + | | First name of the person.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| MiddleName | | MiddleName | ||
| dbo.Name | | dbo.Name | ||
| null | | null | ||
| | | | ||
− | | | + | | Middle name or middle initial of the person.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| LastName | | LastName | ||
| dbo.Name | | dbo.Name | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Last name of the person.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| Suffix | | Suffix | ||
| nvarchar(10) | | nvarchar(10) | ||
| null | | null | ||
| | | | ||
− | | | + | | Surname suffix. For example, Sr. or Jr.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| EmailAddress | | EmailAddress | ||
| nvarchar(50) | | nvarchar(50) | ||
| null | | null | ||
| | | | ||
− | | | + | | E-mail address for the person.<br />IX_Contact_EmailAddress |
− | + | |- valign="top" | |
− | |- | ||
| EmailPromotion | | EmailPromotion | ||
| int | | int | ||
| not null | | not null | ||
| ((0)) | | ((0)) | ||
− | | | + | | 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. <br /> |
− | + | |- valign="top" | |
− | |- | ||
| Phone | | Phone | ||
| dbo.Phone | | dbo.Phone | ||
| null | | null | ||
| | | | ||
− | | | + | | Phone number associated with the person.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| PasswordHash | | PasswordHash | ||
| varchar(128) | | varchar(128) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Password for the e-mail account.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| PasswordSalt | | PasswordSalt | ||
| varchar(10) | | varchar(10) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Random value concatenated with the password string before the password is hashed.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| AdditionalContactInfo | | AdditionalContactInfo | ||
| xml | | xml | ||
| null | | null | ||
| | | | ||
− | | | + | | Additional contact information about the person stored in xml format. <br />PXML_Contact_AddContact |
− | + | |- 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_Contact_rowguid |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | Date and time the record was last updated.<br /> |
− | |||
|} | |} | ||
Line 158: | Line 145: | ||
| ContactID | | ContactID | ||
|} | |} | ||
+ | |||
+ | |||
+ | {| 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]] | ||
+ | |||
+ | |- | ||
+ | | Data Type | ||
+ | | Type | ||
+ | | [[dbo.NameStyle_(type)|dbo.NameStyle]] | ||
+ | |||
+ | |- | ||
+ | | Data Type | ||
+ | | Type | ||
+ | | [[dbo.Phone_(type)|dbo.Phone]] | ||
+ | |||
+ | |- | ||
+ | | Data Type | ||
+ | | XML Schema Collection | ||
+ | | [[Person.AdditionalContactInfoSchemaCollection_(xml_schema_collection)|Person.AdditionalContactInfoSchemaCollection]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Reference Type | ||
+ | | '''Object Type | ||
+ | | '''Referencing Object | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[HumanResources.vEmployee_(view)|HumanResources.vEmployee]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[HumanResources.vEmployeeDepartment_(view)|HumanResources.vEmployeeDepartment]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[HumanResources.vEmployeeDepartmentHistory_(view)|HumanResources.vEmployeeDepartmentHistory]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[Person.vAdditionalContactInfo_(view)|Person.vAdditionalContactInfo]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[Purchasing.vVendor_(view)|Purchasing.vVendor]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[Sales.vSalesPerson_(view)|Sales.vSalesPerson]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[Sales.vSalesPersonSalesByFiscalYears_(view)|Sales.vSalesPersonSalesByFiscalYears]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[Sales.vStoreWithDemographics_(view)|Sales.vStoreWithDemographics]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Procedure | ||
+ | | [[dbo.uspGetEmployeeManagers_(procedure)|dbo.uspGetEmployeeManagers]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | Procedure | ||
+ | | [[dbo.uspGetManagerEmployees_(procedure)|dbo.uspGetManagerEmployees]] | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | SQL table-valued-function | ||
+ | | [[dbo.ufnGetContactInformation_(function)|dbo.ufnGetContactInformation]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | |||
== automatically generated == | == automatically generated == | ||
Revision as of 23:54, 28 December 2009
wikibot
Table | Person.Contact |
Description | Names of each employee, customer contact, and vendor contact. |
Column | Data Type | Nullable | Default | Description / PK / Index |
ContactID | int | not null | Primary key for Contact records. PK_Contact_ContactID | |
NameStyle | dbo.NameStyle | not null | ((0)) | 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. |
Title | nvarchar(8) | null | A courtesy title. For example, Mr. or Ms. | |
FirstName | dbo.Name | not null | First name of the person. | |
MiddleName | dbo.Name | null | Middle name or middle initial of the person. | |
LastName | dbo.Name | not null | Last name of the person. | |
Suffix | nvarchar(10) | null | Surname suffix. For example, Sr. or Jr. | |
EmailAddress | nvarchar(50) | null | E-mail address for the person. IX_Contact_EmailAddress | |
EmailPromotion | int | not null | ((0)) | 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. |
Phone | dbo.Phone | null | Phone number associated with the person. | |
PasswordHash | varchar(128) | not null | Password for the e-mail account. | |
PasswordSalt | varchar(10) | not null | Random value concatenated with the password string before the password is hashed. | |
AdditionalContactInfo | xml | null | Additional contact information about the person stored in xml format. PXML_Contact_AddContact | |
rowguid | uniqueidentifier | not null | (newid()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_Contact_rowguid |
ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
Detail Table | Column | Referencing Column |
Sales.ContactCreditCard | ContactID | ContactID |
HumanResources.Employee | ContactID | ContactID |
Sales.Individual | ContactID | ContactID |
Sales.SalesOrderHeader | ContactID | ContactID |
Sales.StoreContact | ContactID | ContactID |
Purchasing.VendorContact | ContactID | ContactID |
Dependency Type | Object Type | Referenced Object |
Data Type | Type | dbo.Name |
Data Type | Type | dbo.NameStyle |
Data Type | Type | dbo.Phone |
Data Type | XML Schema Collection | Person.AdditionalContactInfoSchemaCollection |
Reference Type | Object Type | Referencing Object |
Select | View | HumanResources.vEmployee |
Select | View | HumanResources.vEmployeeDepartment |
Select | View | HumanResources.vEmployeeDepartmentHistory |
Select | View | Person.vAdditionalContactInfo |
Select | View | Purchasing.vVendor |
Select | View | Sales.vIndividualCustomer |
Select | View | Sales.vSalesPerson |
Select | View | Sales.vSalesPersonSalesByFiscalYears |
Select | View | Sales.vStoreWithDemographics |
Select | Procedure | dbo.uspGetEmployeeManagers |
Select | Procedure | dbo.uspGetManagerEmployees |
Select | SQL table-valued-function | dbo.ufnGetContactInformation |
automatically generated
Table | Person.Contact |
Description | Names of each employee, customer contact, and vendor contact. |
Column | Data Type | Nullable | Default | Description / PK / Index |
ContactID | int | not null | Primary key for Contact records. PK_Contact_ContactID | |
NameStyle | NameStyle | not null | (0) | 0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. |
Title | nvarchar(8) | null | A courtesy title. For example, Mr. or Ms. | |
FirstName | Name | not null | First name of the person. | |
MiddleName | Name | null | Middle name or middle initial of the person. | |
LastName | Name | not null | Last name of the person. | |
Suffix | nvarchar(10) | null | Surname suffix. For example, Sr. or Jr. | |
EmailAddress | nvarchar(50) | null | E-mail address for the person. IX_Contact_EmailAddress | |
EmailPromotion | int | not null | (0) | 0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. |
Phone | Phone | null | Phone number associated with the person. | |
PasswordHash | varchar(128) | not null | Password for the e-mail account. | |
PasswordSalt | varchar(10) | not null | Random value concatenated with the password string before the password is hashed. | |
AdditionalContactInfo | XML | null | Additional contact information about the person stored in xml format. PXML_Contact_AddContact | |
rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_Contact_rowguid |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Detail Table | Column | Referencing Column |
Sales.ContactCreditCard | ContactID | ContactID |
HumanResources.Employee | ContactID | ContactID |
Sales.Individual | ContactID | ContactID |
Sales.SalesOrderHeader | ContactID | ContactID |
Sales.StoreContact | ContactID | ContactID |
Purchasing.VendorContact | ContactID | ContactID |
Dependency Type | Object Type | Referenced Object |
Data Type | Type | dbo.Name |
Data Type | Type | dbo.NameStyle |
Data Type | Type | dbo.Phone |
Schema | Schema | Person |
Data Type | XML Schema Collection | Person.AdditionalContactInfoSchemaCollection |
Reference Type | Object Type | Referencing Object |
Select | View | HumanResources.vEmployee |
Select | View | HumanResources.vEmployeeDepartment |
Select | View | HumanResources.vEmployeeDepartmentHistory |
Select | View | Person.vAdditionalContactInfo |
Select | View | Purchasing.vVendor |
Select | View | Sales.vIndividualCustomer |
Select | View | Sales.vSalesPerson |
Select | View | Sales.vSalesPersonSalesByFiscalYears |
Select | View | Sales.vStoreWithDemographics |
Select | Procedure | dbo.uspGetEmployeeManagers |
Select | Procedure | dbo.uspGetManagerEmployees |
Select | SQL table-valued-function | dbo.ufnGetContactInformation |