Try dropping and re-creating the table ;-)
gus
P.S. You will find yourself in all kinds of trouble if you expect to
have an uninterrupted sequence in an identity column. I recommend that
you read all the documentation related to identity columns in the
manuals (Chapter 3, Transact SQL Topics - IDENTITY Columns), and search
through dejanews for IDENTITY related articles in this group in the
past.
Martin V. wrote in message ...
To reset the identity value for a table using an identity column you need
to use the following set command
set identity_insert {table_name} on
Then you must issue an insert against that table with the value you want
the identity column set to.
set identity_insert sales on
insert sales (syb_identity, col1) values (1, 'reset identity column')
Don't forget to turn identity_insert off once you are finished
HTH
Matt Van Rensburg
mat...@usa.net
Martin V. <mjlvan...@sympatico.ca> wrote in article
<Hltr2.4259$r%4.8...@news21.bellglobal.com>...
Hello,
Is there an easy way to reset the value of the IDENTITY property back to
"1"?
I can't find any alternative to dropping and recreating the table
concerned. Yuck.
Thanks,
Martin V.
<to reply, remove "antispam" from my address>
----------
HTH,
Rob
----------------------------------------------------------------------
Rob Verschoor
Certified Sybase ASE 11.5 Administrator (Professional)
Certified DBA/Performance & Tuning Specialist for Sybase System 11
email r...@sypron.nl.*No*Spam*Please*
WWW www.euronet.nl/~syp_rob
snail Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
----------------------------------------------------------------------
Matt Van Rensburg wrote in message <01be4b03$0d40fae0$5f4c58d1@matman>...