Relationship: FK_Customer_SalesTerritory_TerritoryID on Customer

CollapseAll image

Collapse image Relationship properties


 Name   Value 
 Not For Replication   

Collapse image FK columns


Customer column SalesTerritory column Type
TerritoryID TerritoryID int

Collapse image Extended properties


Name  Value 
MS_Description Foreign key constraint referencing SalesTerritory.TerritoryID.
/ -->

Collapse image SQL


ALTER TABLE [Sales].[Customer]
    WITH CHECK
    ADD CONSTRAINT [FK_Customer_SalesTerritory_TerritoryID]
    FOREIGN KEY ([TerritoryID]) REFERENCES [Sales].[SalesTerritory] ([TerritoryID])
ALTER TABLE [Sales].[Customer]
    CHECK CONSTRAINT [FK_Customer_SalesTerritory_TerritoryID]

GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key constraint referencing SalesTerritory.TerritoryID.', 'SCHEMA', N'Sales', 'TABLE', N'Customer', 'CONSTRAINT', N'FK_Customer_SalesTerritory_TerritoryID'
GO

Collapse image See also


[Sales].[Customer]

[Sales].[SalesTerritory]