By Identity
do not want to, because it breaks the sequence if something happens. Max() + 1
, I find it very vulnerable and slow when I have many records. So I ask, is there a way that someone knows, that I can generate sequential numbers and if there is a problem in generation, it does not trigger the number, as identity does? They say there are algorithms that do this in Sql Server, but I would not like to use non-triggers. Usage Sql Server 2008
, Entity 6
and C#
. It will be generated by C#
with Entity
.