Does someone know what this error (An explicit value for the identity column in table \'HD_AANVRAAG_FASE\' can only be specified when a column list is used and IDENTITY_INSERT
Your code contains
SET IDENTITY_INSERT HD_AANVRAAG_FASE OFF at the end
SET IDENTITY_INSERT HD_AANVRAAG_FASE OFF
But not a corresponding
SET IDENTITY_INSERT HD_AANVRAAG_FASE ON at the start
SET IDENTITY_INSERT HD_AANVRAAG_FASE ON
why are you explicitly inserting these any way? Is it a synchronization task?