Results 1 to 2 of 2

Thread: Add identity column to 90 million row table

  1. #1
    Brad Allen Guest

    Add identity column to 90 million row table

    I need to add an identity column to a table with 90 million rows. I actually want to replace a column. I need to add the column, update the identity value, and remove the old column.

    Is there a way to do this without copying all of the data. I would like to do an alter table to convert the int column to an identity column. Moving the data in the tables will take all day.

  2. #2
    Jeff Putnam Guest

    Add identity column to 90 million row table (reply)

    This is going to take all day no matter how you look at it.. adding an identity column is going to force a data reorg. You don't really need to copy the data though - you should just be able to add the ident column in EM or TSQL.


    ------------
    Brad Allen at 6/21/01 5:42:47 PM

    I need to add an identity column to a table with 90 million rows. I actually want to replace a column. I need to add the column, update the identity value, and remove the old column.

    Is there a way to do this without copying all of the data. I would like to do an alter table to convert the int column to an identity column. Moving the data in the tables will take all day.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •