Annotations for "IDENT_CURRENT (Transact-SQL)" topic.Thu, 18 Dec 2014 20:24:45 Z
http://msdn.microsoft.com/en-us/library/ms175098(v=sql.110).aspx#CommunityContent
David Zifferhow to REALLY predict the next autoincrement valueBecause 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 vThu, 14 Mar 2013 16:02:45 -0700