Hi there,
Your tblSetHistory table has got an IDENTITY column in it, into which you are trying to insert data using a select statement followed in your Trigger. So to get that work you must use it this way.
Code:
Set IDENTITY_INSERT tblSetHistory ON
Insert INTO tblSetHistory ... ...
Set IDENTITY_INSERT tblSetHistory OFF
If you want the SQL server to handle adding value to the INDENTITY column in that table, you got to select only the columns other thatn IDENTITY column for adding in your Insert statement.
Hope that helps.
Cheers!
_________________________
- Vijay G
Strive for Perfection