Purchasing.VendorContact Table

Information

NameVendorContact
SchemaPurchasing
Row Count0
Data Size 
Index Size 
Reserved Size 
Unused Size 
Created29.3.2010. 21:58:18
Modified29.3.2010. 21:58:56

Extended Properties

NameTypeProperty NameValue
VendorContactTABLEMS_DescriptionCross-reference table mapping vendors and their employees.

Columns

PKKeyIdentityNameData TypeAllow NullsCollationReferencesDefaultComputedCompute Expression
   VendorIDint  Purchasing.Vendor.VendorID
 
 
 
   ContactIDint  Person.Contact.ContactID
 
 
 
   ContactTypeIDint  Person.ContactType.ContactTypeID
 
 
 
   ModifiedDatedatetime   
(getdate())
 
 

Indexes

NameTypePrimaryUniqueColumns
PK_VendorContact_VendorID_ContactIDClustered  VendorID, ContactID
IX_VendorContact_ContactIDNonClustered  ContactID
IX_VendorContact_ContactTypeIDNonClustered  ContactTypeID

Foreign Key Constraints

NameTypeReferenced Table
FK_VendorContact_Contact_ContactIDForeign keyPerson.Contact
FK_VendorContact_ContactType_ContactTypeIDForeign keyPerson.ContactType
FK_VendorContact_Vendor_VendorIDForeign keyPurchasing.Vendor

SQL Script

CREATE TABLE [Purchasing].[VendorContact] (
    [VendorID] int NOT NULL,
    [ContactID] int NOT NULL,
    [ContactTypeID] int NOT NULL,
    [ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE INDEX [IX_VendorContact_ContactID] on [Purchasing].[VendorContact]([ContactID]);
CREATE INDEX [IX_VendorContact_ContactTypeID] on [Purchasing].[VendorContact]([ContactTypeID]);