Relationship: FK_EmployeePayHistory_Employee_BusinessEntityID on EmployeePayHistory

CollapseAll image

Collapse image Relationship properties


 Name   Value 
 Not For Replication   

Collapse image FK columns


EmployeePayHistory column Employee column Type
BusinessEntityID BusinessEntityID int

Collapse image Extended properties


Name  Value 
MS_Description Foreign key constraint referencing Employee.EmployeeID.
/ -->

Collapse image SQL


ALTER TABLE [HumanResources].[EmployeePayHistory]
    WITH CHECK
    ADD CONSTRAINT [FK_EmployeePayHistory_Employee_BusinessEntityID]
    FOREIGN KEY ([BusinessEntityID]) REFERENCES [HumanResources].[Employee] ([BusinessEntityID])
ALTER TABLE [HumanResources].[EmployeePayHistory]
    CHECK CONSTRAINT [FK_EmployeePayHistory_Employee_BusinessEntityID]

GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key constraint referencing Employee.EmployeeID.', 'SCHEMA', N'HumanResources', 'TABLE', N'EmployeePayHistory', 'CONSTRAINT', N'FK_EmployeePayHistory_Employee_BusinessEntityID'
GO

Collapse image See also


[HumanResources].[EmployeePayHistory]

[HumanResources].[Employee]