Properties

Owner: Person 
Creation Date: 04/26/2006 
Located On: PRIMARY 
Data Size KB:
Index Size KB: 24 
Rows: 20 
Description: Lookup table containing the types of contacts stored in Contact. 

Columns

Name Data Type Length NULL Default IsIdentity IsGUID Description
    ContactTypeID  int          Primary key for ContactType records. 
    Name  Name  100          Contact type description. 
    ModifiedDate  datetime    (getdate())      Date and time the record was last updated. 
Total: 3 column(s)

Identity column

Name Seed Increment Not for replication
  ContactTypeID   

Indexes

Index Primary Unique Description
  PK_ContactType_ContactTypeID      Primary key (clustered) constraint 
  AK_ContactType_Name      Unique nonclustered index. 
Total: 2 index(es)

Referencing Tables

Table Foreign Key Primary Key or Unique Constraint
  Sales.StoreContact  FK_StoreContact_ContactType_ContactTypeID  PK_ContactType_ContactTypeID 
  Purchasing.VendorContact  FK_VendorContact_ContactType_ContactTypeID  PK_ContactType_ContactTypeID 
Total: 2 table(s)

Objects that [Person].[ContactType] depends on

Object Name Owner Object Type Dep Level
  Name  dbo  User Defined type 
Total: 1 object(s)

Objects that depend on [Person].[ContactType]

Object Name Owner Object Type Dep Level
  StoreContact  Sales  Table 
  VendorContact  Purchasing  Table 
  ufnGetContactInformation  dbo  Function 
  vStoreWithDemographics  Sales  View 
  vVendor  Purchasing  View 
Total: 5 object(s)

SQL

CREATE TABLE [ContactType] (
    [ContactTypeID] [int] IDENTITY (1, 1) NOT NULL ,
    [Name] [Name] NOT NULL ,
    [ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_ContactType_ModifiedDate] DEFAULT (getdate()),
    CONSTRAINT [PK_ContactType_ContactTypeID] PRIMARY KEY  CLUSTERED
    (
        [ContactTypeID]
    )  ON [PRIMARY]
) ON [PRIMARY]
GO


See Also

List of tables