Description
Lookup table containing the types of contacts stored in Contact.
Table properties
| name | value |
|---|
| name | [Person].[ContactType] |
| created | Mar 19 2009 9:08PM |
| modified | Mar 19 2009 9:08PM
|
| ansi nulls | on
|
| quoted identifier | on
|
| row count | 20 |
| Size of data | 8 kb |
| Size of indexes | 24 kb |
| Maximum size of a single row | 212 bytes |
Columns
| column | datatype | length | bytes | default | nulls | PK | FK | UQ | computed | comment |
|---|
| ContactTypeID | int identity(1,1) | 10 | 4 | | no
| yes
| |
| no
| Primary key for ContactType records.
|
| Name | Name | 50 | 200 | | no
|
| |
| no
| Contact type description.
|
| ModifiedDate | datetime | 23 | 8 | (getdate()) | no
|
| |
| no
| Date and time the record was last updated.
|
Indexes
| name | description | column | comment |
|---|
| AK_ContactType_Name | nonclustered, unique located on PRIMARY | Name | Unique nonclustered index.
|
| PK_ContactType_ContactTypeID | clustered, unique, primary key located on PRIMARY | ContactTypeID | Clustered index created by a primary key constraint.
|
Referenced by
Foreign key graph
Defaults
Dependency graph
Objects that [Person].[ContactType] depends on
| name | object type | level |
|---|
| Name | type | 1 |
Objects that depend on [Person].[ContactType]
Sample rows
| ContactTypeID | Name | ModifiedDate |
|---|
| 1
| Accounting Manager
| 6/1/1998 12:00:00 AM
|
| 2
| Assistant Sales Agent
| 6/1/1998 12:00:00 AM
|
| 3
| Assistant Sales Representative
| 6/1/1998 12:00:00 AM
|
| 4
| Coordinator Foreign Markets
| 6/1/1998 12:00:00 AM
|
| 5
| Export Administrator
| 6/1/1998 12:00:00 AM
|
| 6
| International Marketing Manager
| 6/1/1998 12:00:00 AM
|
| 7
| Marketing Assistant
| 6/1/1998 12:00:00 AM
|
| 8
| Marketing Manager
| 6/1/1998 12:00:00 AM
|
| 9
| Marketing Representative
| 6/1/1998 12:00:00 AM
|
| 10
| Order Administrator
| 6/1/1998 12:00:00 AM
|
Code
CREATE TABLE [Person].[ContactType](
[ContactTypeID] [int] IDENTITY(1,1) NOT NULL,
[Name] [dbo].[Name] NOT NULL,
[ContactTypeID] [int] IDENTITY(1,1) NOT NULL,
[ModifiedDate] [datetime] NOT NULL,
CONSTRAINT [PK_ContactType_ContactTypeID] PRIMARY KEY CLUSTERED
(
[ContactTypeID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
ALTER TABLE [Person].[ContactType] ADD CONSTRAINT [DF_ContactType_ModifiedDate] DEFAULT (getdate()) FOR [ModifiedDate]