Re: Updating IDENTITY
From: Kestutis Adomavicius (kicker_at_nospam-mail.lt)
Date: 05/26/04
- Next message: Mark Davies: "Re: Comparing COUNTs from a self-join"
- Previous message: Richard J: "RE: Updating IDENTITY"
- In reply to: Peter: "Updating IDENTITY"
- Next in thread: Peter: "Updating IDENTITY"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 26 May 2004 15:19:37 +0300
You should use DBCC CHECKIDENT ('table_name', RESEED, new_reseed_value) to
change table's identity column seed (next value which will be assigned).
-- Regards, Kestutis Adomavicius Consultant UAB "Baltic Software Solutions" "Peter" <anonymous@discussions.microsoft.com> wrote in message news:12c3801c4430f$7516b790$a101280a@phx.gbl... > Dear All, > Due to reasons too long to explain our identity columns > are getting out of sych. > > Using the command > SELECT name from sysobjects where xtype = 'U' i would like > to loop though all my tables and update the internal value > (not the one on the table but the one held if you do a > IDENT_CURRENT(tablename) of the identity. > > Can someone help me with some code her as I'm foxed. > > Peter
- Next message: Mark Davies: "Re: Comparing COUNTs from a self-join"
- Previous message: Richard J: "RE: Updating IDENTITY"
- In reply to: Peter: "Updating IDENTITY"
- Next in thread: Peter: "Updating IDENTITY"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|