Because IDENT_CURRENT returns the identity seed (rather than zero or at least null, as one might expect) in a table that has never been assigned an identity value, it is impossible to use IDENT_CURRENT to predict the next identity seed, since for example in a table using a bigint identity type and an increment value of 1, IDENT_CURRENT will return the value 1 [the identity seed rather than the real current value] if the identity value has never been assigned, and also 1 if exactly one identity v
↧