SqlBulkCopy Insert with Identity Column

To have the destination table assign the identity, DO NOT use the SqlBulkCopyOptions.KeepIdentity option. Instead, don’t map the identity from the source, and don’t extract it from source to send through to SqlBulkCopy.

Leave a Comment