From dbscript Online Help
wikibot
| Table
|
Sales.SalesTerritoryHistory
|
| Column
|
Data Type
|
Nullable
|
Default
|
PK
|
Index
|
| SalesPersonID
|
int
|
not null
|
|
PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID
|
|
| TerritoryID
|
int
|
not null
|
|
PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID
|
|
| StartDate
|
datetime
|
not null
|
|
PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID
|
|
| EndDate
|
datetime
|
null
|
|
|
|
| rowguid
|
uniqueidentifier
|
not null
|
(newid())
|
|
AK_SalesTerritoryHistory_rowguid
|
| ModifiedDate
|
datetime
|
not null
|
(getdate())
|
|
|