Identity column jumps 1000 when MS SQL2012 is restarted issue

Discussion in 'Databases' started by nigpig, Apr 13, 2015.

  1. FrankC

    FrankC DiscountASP.NET Staff

    I am not sure if we can put in the traceflag because it has performance ramification.

    Have you considered solution 1 described in this article?
     
  2. This would be a big change that I'm not sure how to do as the column orderID is a primary key to quite a few tables.
     
  3. Just checked and I would have to drop and recreate my orders table. That would be a nightmare. FrankC, Could the traceflag option be explored a little please?
     
  4. I have managed to implement solution 1 on a test database so it looks I will go this way. I created a create script and then I dropped my relationships, renamed tblOrder to tblOrderOld. Recreated tblOrders with out the identity, just Int. Copied over the data, recreated the relationships, created the sequence and modified my insert order procedures. Did some testing. Now to download a bak and do the mods for upload and replace db.
     
    mjp likes this.
  5. FrankC

    FrankC DiscountASP.NET Staff

    Good to hear.
     

Share This Page