The obvious solution would be to use DBCC CHECKIDENT, which sets the
identity value based on the maximum value in the table. However, we audit
changes to the tables in a separate database, and if the highest identity
value for a table was already used and the record deleted, we can't re-use
the value, since it is stored in the audit database. Thus, setting the
identity value based on the highest value in the base table isn't
sufficient; we need to take the audit database into account as well.
Does anyone know of a way of setting the internal identity value for a
table, perhaps using some undocumented statement? We would be much
appreciative of any useful tips you can give us.
Thanks in advance,
--
Joshua Langemann
Computronix Holdings Limited
e-mail: jos...@computronix.com
--
Bob Pfeiff
MCSD, MVP
Spectrum Technology Group, Inc.
bo...@spectrumtech.com
Will let you insert value into identity column.
William Zhou
Joshua Langemann <jos...@computronix.com> wrote in article
<01bdc791$e35ab580$9964...@chl0063r.edmonton.computronix.com>...