Difference between revisions of "Sales.StoreContact (table)"
Line 82: | Line 82: | ||
| '''Table | | '''Table | ||
| Sales.StoreContact | | Sales.StoreContact | ||
− | |- | + | |- valign="top" |
| '''Description | | '''Description | ||
Line 104: | Line 104: | ||
| not null | | not null | ||
| | | | ||
− | | Store identification number. Foreign key to Customer.CustomerID.PK_StoreContact_CustomerID_ContactID | + | | Store identification number. Foreign key to Customer.CustomerID.<br />PK_StoreContact_CustomerID_ContactID |
|- valign="top" | |- valign="top" | ||
| ContactID | | ContactID | ||
Line 110: | Line 110: | ||
| not null | | not null | ||
| | | | ||
− | | Contact (store employee) identification number. Foreign key to Contact.ContactID.PK_StoreContact_CustomerID_ContactIDIX_StoreContact_ContactID | + | | Contact (store employee) identification number. Foreign key to Contact.ContactID.<br />PK_StoreContact_CustomerID_ContactIDIX_StoreContact_ContactID |
|- valign="top" | |- valign="top" | ||
| ContactTypeID | | ContactTypeID | ||
Line 116: | Line 116: | ||
| not null | | not null | ||
| | | | ||
− | | Contact type such as owner or purchasing agent. Foreign key to ContactType.ContactTypeID.IX_StoreContact_ContactTypeID | + | | Contact type such as owner or purchasing agent. Foreign key to ContactType.ContactTypeID.<br />IX_StoreContact_ContactTypeID |
|- valign="top" | |- valign="top" | ||
| rowguid | | rowguid | ||
Line 122: | Line 122: | ||
| not null | | not null | ||
| (NEWID()) | | (NEWID()) | ||
− | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.AK_StoreContact_rowguid | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_StoreContact_rowguid |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 128: | Line 128: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated.<br /> |
|} | |} | ||
Revision as of 01:11, 27 November 2009
wikibot
Table | Sales.StoreContact |
Column | Data Type | Nullable | Default | PK | Index |
CustomerID | int | not null | PK_StoreContact_CustomerID_ContactID | ||
ContactID | int | not null | PK_StoreContact_CustomerID_ContactID | IX_StoreContact_ContactID | |
ContactTypeID | int | not null | IX_StoreContact_ContactTypeID | ||
rowguid | uniqueidentifier | not null | (newid()) | AK_StoreContact_rowguid | |
ModifiedDate | datetime | not null | (getdate()) |
Relation | Column | Referenced Column |
Person.Contact | ContactID | ContactID |
Person.ContactType | ContactTypeID | ContactTypeID |
Sales.Store | CustomerID | CustomerID |
automatically generated
Table | Sales.StoreContact |
Description | Cross-reference table mapping stores and their employees. |
Column | Data Type | Nullable | Default | Description / PK / Index |
CustomerID | int | not null | Store identification number. Foreign key to Customer.CustomerID. PK_StoreContact_CustomerID_ContactID | |
ContactID | int | not null | Contact (store employee) identification number. Foreign key to Contact.ContactID. PK_StoreContact_CustomerID_ContactIDIX_StoreContact_ContactID | |
ContactTypeID | int | not null | Contact type such as owner or purchasing agent. Foreign key to ContactType.ContactTypeID. IX_StoreContact_ContactTypeID | |
rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_StoreContact_rowguid |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Person.Contact | ContactID | ContactID |
Person.ContactType | ContactTypeID | ContactTypeID |
Sales.Store | CustomerID | CustomerID |
Referencing Object | Object Type | Reference Type |
Sales.vStoreWithDemographics | View | Select |
dbo.ufnGetContactInformation | SQL table-valued-function | Select |