How to add IDENTITY/AUTO_INCREMENT in a existing table?

We are moving data from the old server to the new server.

Answers

  • SruthiASruthiA Administrator

    @iddpanganiban you cannot add identity columns to existing tables. Only way to add them is recreate the table with identity column, copy the data to new table and drop old table.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file