5

I have a table in EntityFramework that has a field named by ID, this field is primary key and is Identity. when i add records into this table, this field value increases per recor, after adding several records, this value suddenly increases For example, increased from 90 in 1010 While no transaction has been unsuccessful. what is the problem?

Deve loper
  • 103
  • 8

1 Answers1

0

If you are using Azure SQL this can just happen. We had it happen a few times. It is just the nature of how Azure sql works.

See this question Windows Azure SQL Database - Identity Auto increment column skips values it goes into a detailed explanation for a case very similar to yours

Community
  • 1
  • 1
GraemeMiller
  • 11,973
  • 8
  • 57
  • 111