Difference between revisions of "Sales.Store (table)"
Line 103: | Line 103: | ||
| ON INSERT | | ON INSERT | ||
|} | |} | ||
− | |||
== automatically generated == | == automatically generated == | ||
Line 125: | Line 124: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| CustomerID | | CustomerID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to Customer.CustomerID. | + | | Primary key. Foreign key to Customer.CustomerID.PK_Store_CustomerID |
− | + | |- valign="top" | |
− | |- | ||
| Name | | Name | ||
| Name | | Name | ||
Line 141: | Line 138: | ||
| | | | ||
| Name of the store. | | Name of the store. | ||
− | + | |- valign="top" | |
− | |- | ||
| SalesPersonID | | SalesPersonID | ||
| int | | int | ||
| null | | null | ||
| | | | ||
− | | ID of the sales person assigned to the customer. Foreign key to SalesPerson.SalesPersonID. | + | | ID of the sales person assigned to the customer. Foreign key to SalesPerson.SalesPersonID.IX_Store_SalesPersonID |
− | + | |- valign="top" | |
− | |- | ||
| Demographics | | Demographics | ||
| XML | | XML | ||
| null | | null | ||
| | | | ||
− | | Demographic informationg about the store such as the number of employees, annual sales and store type. | + | | Demographic informationg about the store such as the number of employees, annual sales and store type.PXML_Store_Demographics |
− | + | |- valign="top" | |
− | |- | ||
| rowguid | | rowguid | ||
| uniqueidentifier | | uniqueidentifier | ||
| not null | | not null | ||
| (NEWID()) | | (NEWID()) | ||
− | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.AK_Store_rowguid |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
Line 169: | Line 162: | ||
| (GETDATE()) | | (GETDATE()) | ||
| Date and time the record was last updated. | | Date and time the record was last updated. | ||
− | |||
|} | |} | ||
Line 212: | Line 204: | ||
| iStore | | iStore | ||
| ON INSERT | | ON INSERT | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Referenced Object | ||
+ | | '''Object Type | ||
+ | | '''Dependency Type | ||
+ | |||
+ | |- | ||
+ | | [[dbo.Name_(type)|dbo.Name]] | ||
+ | | Type | ||
+ | | Data Type | ||
+ | |- | ||
+ | | [[Sales.StoreSurveySchemaCollection_(xml_schema_collection)|Sales.StoreSurveySchemaCollection]] | ||
+ | | XML Schema Collection | ||
+ | | Data Type | ||
+ | |- | ||
+ | | [[Sales.Individual_(table)|Sales.Individual]] | ||
+ | | Table | ||
+ | | Select | ||
+ | |- | ||
+ | | [[dbo.uspLogError_(procedure)|dbo.uspLogError]] | ||
+ | | Procedure | ||
+ | | Execute | ||
+ | |- | ||
+ | | [[dbo.uspPrintError_(procedure)|dbo.uspPrintError]] | ||
+ | | Procedure | ||
+ | | Execute | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Referencing Object | ||
+ | | '''Object Type | ||
+ | | '''Reference Type | ||
+ | |||
+ | |- | ||
+ | | [[Sales.vStoreWithDemographics_(view)|Sales.vStoreWithDemographics]] | ||
+ | | View | ||
+ | | Select | ||
+ | |- | ||
+ | | [[Sales.Individual_(table)|Sales.Individual]] | ||
+ | | Table | ||
+ | | Select | ||
|} | |} |
Revision as of 23:58, 26 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 |
Referenced Object | Object Type | Dependency Type |
dbo.Name | Type | Data Type |
Sales.StoreSurveySchemaCollection | XML Schema Collection | Data Type |
Sales.Individual | Table | Select |
dbo.uspLogError | Procedure | Execute |
dbo.uspPrintError | Procedure | Execute |
Referencing Object | Object Type | Reference Type |
Sales.vStoreWithDemographics | View | Select |
Sales.Individual | Table | Select |