Person.StateProvince

Table: 'Person.StateProvince'

8 fields. 153 bytes.

State and province lookup table.

Field NameData TypeSizeOriginal TypeDefaultNullableDescriptionCheck
StateProvinceIDint identity int Not nullPrimary key for StateProvince records. 
StateProvinceCodenchar3  Not nullISO standard state or province code. 
CountryRegionCodenvarchar3  Not nullISO standard country or region code. Foreign key to CountryRegion.CountryRegionCode.  
IsOnlyStateProvinceFlagFlag bit(1)Not null0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode. 
NameName nvarchar(50) Not nullState or province description. 
TerritoryIDint   Not nullID of the territory in which the state or province is located. Foreign key to SalesTerritory.SalesTerritoryID. 
rowguiduniqueidentifier  newid()Not nullROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. 
ModifiedDatedatetime  getdate()Not nullDate and time the record was last updated. 

Extended Properties

The object has no extended properties.

Primary key for table 'Person.StateProvince'

Primary Key NameField Name
PK_StateProvince_StateProvinceIDStateProvinceID

Foreign keys for table 'Person.StateProvince', 2 items

ForeignPrimaryKey Name
StateProvince.CountryRegionCodeCountryRegion.CountryRegionCodeFK_StateProvince_CountryRegion_CountryRegionCode
StateProvince.TerritoryIDSalesTerritory.TerritoryIDFK_StateProvince_SalesTerritory_TerritoryID

Indexes for table 'Person.StateProvince', 4 items

Index NameDescriptionClusteredUniqueFields
PK_StateProvince_StateProvinceIDClustered index created by a primary key constraint.YesYesStateProvinceID
AK_StateProvince_NameUnique nonclustered index.NoYesName
AK_StateProvince_rowguidUnique nonclustered index. Used to support replication samples.NoYesrowguid
AK_StateProvince_StateProvinceCode_CountryRegionCodeUnique nonclustered index.NoYesStateProvinceCode, CountryRegionCode

Triggers for table 'Person.StateProvince', 1 item

NameDescriptionTypeEnabled
uStateProvinceAFTER UPDATE trigger setting the ModifiedDate column in the StateProvince table to the current date.after Update Yes

Dependencies for table 'Person.StateProvince', 7 items

Object NameTypeField Name
HumanResources.vEmployeeviewN/A
Person.uStateProvincetriggerN/A
Person.vStateProvinceCountryRegionviewN/A
Purchasing.vVendorviewN/A
Sales.vIndividualCustomerviewN/A
Sales.vSalesPersonviewN/A
Sales.vStoreWithDemographicsviewN/A