-- This should fail
USE AdventureWorks
TRUNCATE TABLE [HumanResources].[JobCandidateHistory]
GO
USE AdventureWorks
INSERT INTO [HumanResources].[JobCandidateHistory]
VALUES
(1,
'
'
,-1
,GETDATE()
,1)
TRUNCATE TABLE [HumanResources].[JobCandidateHistory]
GO
-- This should succeed
USE AdventureWorks
INSERT INTO [HumanResources].[JobCandidateHistory]
VALUES
(1,
'
'
,6
,GETDATE()
,1)
TRUNCATE TABLE [HumanResources].[JobCandidateHistory]
GO