Import and Export Wizard with Identity Column

Elad Lachmi picture Elad Lachmi · May 5, 2011 · Viewed 60.5k times · Source

I want to move data from one DB to another, while keeping the identity column values in the old DB. When I run the wizard I get a validation error "Failure inserting into the read-only column "ChannelID".

Where ChannelID is an identity column on that table. How can I override the identity functionality in order to be able to import the data?

Answer

MichaelHouse picture MichaelHouse · May 5, 2011

You'll need to Enable identity insert. There's a check box when you click the Edit Mappings.