Sales.Store (table)
wikibot
Table | Sales.Store |
Column | Data Type | Nullable | Default | PK | Index |
CustomerID | int | not null | PK_Store_CustomerID | ||
Name | dbo.Name | not null | |||
SalesPersonID | int | null | IX_Store_SalesPersonID | ||
Demographics | xml | null | PXML_Store_Demographics | ||
rowguid | uniqueidentifier | not null | (newid()) | AK_Store_rowguid | |
ModifiedDate | datetime | not null | (getdate()) |
Relation | Column | Referenced Column |
Sales.Customer | CustomerID | CustomerID |
Sales.SalesPerson | SalesPersonID | SalesPersonID |
Detail Table | Column | Referencing Column |
Sales.StoreContact | CustomerID | CustomerID |
Triggers | Type |
iStore | ON INSERT |
automatically generated
Table | Sales.Store |
Description | Customers (resellers) of Adventure Works products. |
Column | Data Type | Nullable | Default | Description / PK / Index |
CustomerID | int | not null | Primary key. Foreign key to Customer.CustomerID. PK_Store_CustomerID | |
Name | Name | not null | Name of the store. | |
SalesPersonID | int | null | ID of the sales person assigned to the customer. Foreign key to SalesPerson.SalesPersonID. IX_Store_SalesPersonID | |
Demographics | XML | null | Demographic informationg about the store such as the number of employees, annual sales and store type. PXML_Store_Demographics | |
rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_Store_rowguid |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Sales.Customer | CustomerID | CustomerID |
Sales.SalesPerson | SalesPersonID | SalesPersonID |
Detail Table | Column | Referencing Column |
Sales.StoreContact | CustomerID | CustomerID |
Triggers | Type |
iStore | ON INSERT |
Referenced Object | Object Type | Dependency Type | ||
dbo.Name | Type | Data Type | ||
.Sales | Schema | Schema | ||
Sales.StoreSurveySchemaCollection | XML Schema Collection | Data Type | ||
Sales.Individual | Table | Select | Trigger | iStore |
dbo.uspLogError | Procedure | Execute | Trigger | iStore |
dbo.uspPrintError | Procedure | Execute | Trigger | iStore |
Referencing Object | Object Type | Reference Type | ||
Sales.vStoreWithDemographics | View | Select | ||
Sales.Individual | Table | Select | Trigger | iuIndividual |