Relationship: FK_ProductVendor_Vendor_BusinessEntityID on ProductVendor

CollapseAll image

Collapse image Relationship properties


 Name   Value 
 Not For Replication   

Collapse image FK columns


ProductVendor column Vendor column Type
BusinessEntityID BusinessEntityID int

Collapse image Extended properties


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

Collapse image SQL


ALTER TABLE [Purchasing].[ProductVendor]
    WITH CHECK
    ADD CONSTRAINT [FK_ProductVendor_Vendor_BusinessEntityID]
    FOREIGN KEY ([BusinessEntityID]) REFERENCES [Purchasing].[Vendor] ([BusinessEntityID])
ALTER TABLE [Purchasing].[ProductVendor]
    CHECK CONSTRAINT [FK_ProductVendor_Vendor_BusinessEntityID]

GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key constraint referencing Vendor.BusinessEntityID.', 'SCHEMA', N'Purchasing', 'TABLE', N'ProductVendor', 'CONSTRAINT', N'FK_ProductVendor_Vendor_BusinessEntityID'
GO

Collapse image See also


[Purchasing].[ProductVendor]

[Purchasing].[Vendor]