Relationship: FK_Customer_Store_StoreID on Customer

CollapseAll image

Collapse image Relationship properties


 Name   Value 
 Not For Replication   

Collapse image FK columns


Customer column Store column Type
StoreID BusinessEntityID int

Collapse image Extended properties


Name  Value 
MS_Description Foreign key constraint referencing Store.BusinessEntityID.
/ -->

Collapse image SQL


ALTER TABLE [Sales].[Customer]
    WITH CHECK
    ADD CONSTRAINT [FK_Customer_Store_StoreID]
    FOREIGN KEY ([StoreID]) REFERENCES [Sales].[Store] ([BusinessEntityID])
ALTER TABLE [Sales].[Customer]
    CHECK CONSTRAINT [FK_Customer_Store_StoreID]

GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key constraint referencing Store.BusinessEntityID.', 'SCHEMA', N'Sales', 'TABLE', N'Customer', 'CONSTRAINT', N'FK_Customer_Store_StoreID'
GO

Collapse image See also


[Sales].[Customer]

[Sales].[Store]