I have a followed table:
JobSkill
CreatedByID not null,
CreatedDate not null,
ModifiedByID not null,
ModifiedDate not null
I need to insert a record by procedure and trigger.
CreatedByID
and ModifiedByID
are inserted through procedure.
I need to create trigger for inserting CreatedDate
and ModifiedDate
.
When I am executing insert method in MSSQL, I am getting this error.
Msg 515, Level 16, State 2, Line 1
Cannot insert the value NULL into column 'CreatedDate', table 'One91.dbo.JobSkill'; column does not allow nulls. INSERT fails.
The statement has been terminated.
Can anyone help me in this issue pls.