Turn on IDENTITY_INSERT when attempting to insert an id for an attachment.