Difference between revisions of "Sales.Store (table)"
Line 209: | Line 209: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
| '''Referenced Object | | '''Referenced Object | ||
− | | ''' | + | |
− | | ''' | + | | '''Child Type |
+ | | '''Child Object | ||
|- | |- | ||
+ | | Data Type | ||
+ | | Type | ||
| [[dbo.Name_(type)|dbo.Name]] | | [[dbo.Name_(type)|dbo.Name]] | ||
− | | | + | |
− | | | + | | |
+ | | | ||
|- | |- | ||
− | |||
| Schema | | Schema | ||
| Schema | | Schema | ||
+ | | [[Sales_(schema)|Sales]] | ||
+ | |||
+ | | | ||
+ | | | ||
|- | |- | ||
+ | | Data Type | ||
+ | | XML Schema Collection | ||
| [[Sales.StoreSurveySchemaCollection_(xml_schema_collection)|Sales.StoreSurveySchemaCollection]] | | [[Sales.StoreSurveySchemaCollection_(xml_schema_collection)|Sales.StoreSurveySchemaCollection]] | ||
− | | | + | |
− | | | + | | |
+ | | | ||
|- | |- | ||
+ | | Select | ||
+ | | Table | ||
| [[Sales.Individual_(table)|Sales.Individual]] | | [[Sales.Individual_(table)|Sales.Individual]] | ||
− | + | ||
− | |||
| Trigger | | Trigger | ||
| iStore | | iStore | ||
|- | |- | ||
+ | | Execute | ||
+ | | Procedure | ||
| [[dbo.uspLogError_(procedure)|dbo.uspLogError]] | | [[dbo.uspLogError_(procedure)|dbo.uspLogError]] | ||
− | + | ||
− | |||
| Trigger | | Trigger | ||
| iStore | | iStore | ||
|- | |- | ||
+ | | Execute | ||
+ | | Procedure | ||
| [[dbo.uspPrintError_(procedure)|dbo.uspPrintError]] | | [[dbo.uspPrintError_(procedure)|dbo.uspPrintError]] | ||
− | + | ||
− | |||
| Trigger | | Trigger | ||
| iStore | | iStore | ||
Line 248: | Line 263: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
+ | | '''Reference Type | ||
+ | | '''Object Type | ||
| '''Referencing Object | | '''Referencing Object | ||
− | | ''' | + | |
− | | ''' | + | | '''Child Type |
+ | | '''Child Object | ||
|- | |- | ||
+ | | Select | ||
+ | | View | ||
| [[Sales.vStoreWithDemographics_(view)|Sales.vStoreWithDemographics]] | | [[Sales.vStoreWithDemographics_(view)|Sales.vStoreWithDemographics]] | ||
− | | | + | |
+ | | | ||
+ | | | ||
+ | |- | ||
| Select | | Select | ||
− | | | + | | Table |
| [[Sales.Individual_(table)|Sales.Individual]] | | [[Sales.Individual_(table)|Sales.Individual]] | ||
− | + | ||
− | |||
| Trigger | | Trigger | ||
| iuIndividual | | iuIndividual | ||
|} | |} |
Revision as of 06:35, 30 November 2009
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 |
Dependency Type | Object Type | Referenced Object | Child Type | Child Object |
Data Type | Type | dbo.Name | ||
Schema | Schema | Sales | ||
Data Type | XML Schema Collection | Sales.StoreSurveySchemaCollection | ||
Select | Table | Sales.Individual | Trigger | iStore |
Execute | Procedure | dbo.uspLogError | Trigger | iStore |
Execute | Procedure | dbo.uspPrintError | Trigger | iStore |
Reference Type | Object Type | Referencing Object | Child Type | Child Object |
Select | View | Sales.vStoreWithDemographics | ||
Select | Table | Sales.Individual | Trigger | iuIndividual |