| Person |
| 04/26/2006 |
| PRIMARY |
| 4536 |
| 1896 |
| 19972 |
| Names of each employee, customer contact, and vendor contact. |
|
|
ContactID |
int |
4 |
|
|
|
|
Primary key for Contact records. |
|
|
NameStyle |
NameStyle |
1 |
|
((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 |
|
|
|
|
A courtesy title. For example, Mr. or Ms. |
|
|
FirstName |
Name |
100 |
|
|
|
|
First name of the person. |
|
|
MiddleName |
Name |
100 |
|
|
|
|
Middle name or middle initial of the person. |
|
|
LastName |
Name |
100 |
|
|
|
|
Last name of the person. |
|
|
Suffix |
nvarchar |
10 |
|
|
|
|
Surname suffix. For example, Sr. or Jr. |
|
|
EmailAddress |
nvarchar |
50 |
|
|
|
|
E-mail address for the person. |
|
|
EmailPromotion |
int |
4 |
|
((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 |
50 |
|
|
|
|
Phone number associated with the person. |
|
|
PasswordHash |
varchar |
128 |
|
|
|
|
Password for the e-mail account. |
|
|
PasswordSalt |
varchar |
10 |
|
|
|
|
Random value concatenated with the password string before the password is hashed. |
|
|
AdditionalContactInfo |
xml |
-1 |
|
|
|
|
Additional contact information about the person stored in xml format. |
|
|
rowguid |
uniqueidentifier |
16 |
|
(newid()) |
|
|
ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. |
|
|
ModifiedDate |
datetime |
8 |
|
(getdate()) |
|
|
Date and time the record was last updated. |
Total: 15 column(s)
|
ContactID |
1 |
1 |
|
Total: 4 index(es)
|
CK_Contact_EmailPromotion |
([EmailPromotion]>=(0) AND [EmailPromotion]<=(2)) |
Total: 1 constraint(s)
Total: 6 table(s)
Total: 3 object(s)
Total: 45 object(s)
CREATE TABLE [Contact] (
[ContactID] [int] IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL ,
[NameStyle] [NameStyle] NOT NULL CONSTRAINT [DF_Contact_NameStyle] DEFAULT ((0)),
[Title] [nvarchar] (8) COLLATE Latin1_General_CS_AS NULL ,
[FirstName] [Name] NOT NULL ,
[MiddleName] [Name] NULL ,
[LastName] [Name] NOT NULL ,
[Suffix] [nvarchar] (10) COLLATE Latin1_General_CS_AS NULL ,
[EmailAddress] [nvarchar] (50) COLLATE Latin1_General_CS_AS NULL ,
[EmailPromotion] [int] NOT NULL CONSTRAINT [DF_Contact_EmailPromotion] DEFAULT ((0)),
[Phone] [Phone] NULL ,
[PasswordHash] [varchar] (128) COLLATE Latin1_General_CS_AS NOT NULL ,
[PasswordSalt] [varchar] (10) COLLATE Latin1_General_CS_AS NOT NULL ,
[AdditionalContactInfo] [xml] NULL ,
[rowguid] uniqueidentifier ROWGUIDCOL NOT NULL CONSTRAINT [DF_Contact_rowguid] DEFAULT (newid()),
[ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_Contact_ModifiedDate] DEFAULT (getdate()),
CONSTRAINT [PK_Contact_ContactID] PRIMARY KEY CLUSTERED
(
[ContactID]
) ON [PRIMARY] ,
CONSTRAINT [CK_Contact_EmailPromotion] CHECK ([EmailPromotion]>=(0) AND [EmailPromotion]<=(2))
) ON [PRIMARY]
GO
List of tables