AdventureWorks Database > Purchasing Schema : Purchasing.VendorContact Table |
Creation Date | 08/01/2010 08:40 |
File Group | PRIMARY |
Text File Group | |
System Object | ![]() |
Published for Replication | ![]() |
Rows | 156 |
Data Space Used | 8.00 KB |
Index Space Used | 40.00 KB |
Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
---|---|---|---|---|---|---|---|
![]() | VendorID | Primary key. | int | 4 | |||
![]() | ContactID | Contact (Vendor employee) identification number. Foreign key to Contact.ContactID. | int | 4 | |||
ContactTypeID | Contact type such as sales manager, or sales agent. | int | 4 | ||||
ModifiedDate | Date and time the record was last updated. | datetime | 4 | (getdate()) |
Index | Description | Primary | Unique |
---|---|---|---|
IX_VendorContact_ContactID | Nonclustered index. | ||
IX_VendorContact_ContactTypeID | Nonclustered index. | ||
PK_VendorContact_VendorID_ContactID | Primary key (clustered) constraint | ![]() | ![]() |
Relationship | Description |
---|---|
FK_VendorContact_Contact_ContactID | Foreign key constraint referencing Contact.ContactID. |
FK_VendorContact_ContactType_ContactTypeID | Foreign key constraint referencing ContactType.ContactTypeID. |
FK_VendorContact_Vendor_VendorID | Foreign key constraint referencing Vendor.VendorID. |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
![]() | dbo.ufnGetContactInformation | User Defined Function | Table value function returning the first name, last name, job title and contact type for a given contact. | 1 |
![]() | Purchasing.vVendor | View | Vendor (company) names and addresses and the names of vendor employees to contact. | 1 |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
![]() | dbo.AccountNumber | User Defined Data Type | 2 | |
![]() | Person.Contact | Table | Names of each employee, customer contact, and vendor contact. | 1 |
![]() | Person.ContactType | Table | Lookup table containing the types of contacts stored in Contact. | 1 |
![]() | dbo.ErrorLog | Table | Audit table tracking errors in the the AdventureWorks database that are caught by the CATCH block of a TRY...CATCH construct. Data is inserted by stored procedure dbo.uspLogError when it is executed from inside the CATCH block of a TRY...CATCH construct. | 3 |
![]() | dbo.Flag | User Defined Data Type | 2 | |
![]() | dbo.Name | User Defined Data Type | 2 | |
![]() | dbo.NameStyle | User Defined Data Type | 2 | |
![]() | dbo.Phone | User Defined Data Type | 2 | |
![]() | dbo.uspLogError | Stored Procedure | Logs error information in the ErrorLog table about the error that caused execution to jump to the CATCH block of a TRY...CATCH construct. Should be executed from within the scope of a CATCH block otherwise it will return without inserting error information. | 2 |
![]() | dbo.uspPrintError | Stored Procedure | Prints error information about the error that caused execution to jump to the CATCH block of a TRY...CATCH construct. Should be executed from within the scope of a CATCH block otherwise it will return without printing any error information. | 2 |
![]() | Purchasing.Vendor | Table | Companies from whom Adventure Works Cycles purchases parts or other goods. | 1 |
|