Relationship: FK_Product_ProductSubcategory_ProductSubcategoryID on Product

CollapseAll image

Collapse image Relationship properties


 Name   Value 
 Not For Replication   

Collapse image FK columns


Product column ProductSubcategory column Type
ProductSubcategoryID ProductSubcategoryID int

Collapse image Extended properties


Name  Value 
MS_Description Foreign key constraint referencing ProductSubcategory.ProductSubcategoryID.
/ -->

Collapse image SQL


ALTER TABLE [Production].[Product]
    WITH CHECK
    ADD CONSTRAINT [FK_Product_ProductSubcategory_ProductSubcategoryID]
    FOREIGN KEY ([ProductSubcategoryID]) REFERENCES [Production].[ProductSubcategory] ([ProductSubcategoryID])
ALTER TABLE [Production].[Product]
    CHECK CONSTRAINT [FK_Product_ProductSubcategory_ProductSubcategoryID]

GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key constraint referencing ProductSubcategory.ProductSubcategoryID.', 'SCHEMA', N'Production', 'TABLE', N'Product', 'CONSTRAINT', N'FK_Product_ProductSubcategory_ProductSubcategoryID'
GO

Collapse image See also


[Production].[Product]

[Production].[ProductSubcategory]