Re: identity on / off
- From: "Hari Prasad" <hari_prasad_k@xxxxxxxxxxx>
- Date: Tue, 10 Oct 2006 07:25:58 +0530
Hi,
To add on, you can not switch of the Identity property using a TSQL. But you
could reseed the identity
value using DBCC CHECKIDENT command.While resseding ensure that primary key
violation will
not happen incase the identity column is associated with PKey.
Thanks
Hari
"Arnie Rowland" <arnie@xxxxxxxx> wrote in message
news:%23yU32r86GHA.4604@xxxxxxxxxxxxxxxxxxxxxxx
You can't 'turn' it on and off.
You can add a new column, transfer data if appropriate, and remove the old
column.
Enterprise Mangler creates a new table and transfers the data from the old
table to the new table. (One of the many reasons that EM is NOT a good
tool to use to manage your databases.)
--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
lue "David Kwon" <tjk_guard-msnewsgp@xxxxxxxxx> wrote in message
news:e0MFUC86GHA.1188@xxxxxxxxxxxxxxxxxxxxxxx
does anyone know syntext to turn on / off Identity field? I usually do
this
via EnterpriseMgr but I want to do this via SQL.
.
- References:
- identity on / off
- From: David Kwon
- Re: identity on / off
- From: Arnie Rowland
- identity on / off
- Prev by Date: Re: Login to SQL with non domain account
- Next by Date: Re: Connectivty problem from NON domain users
- Previous by thread: Re: identity on / off
- Next by thread: Re: identity on / off
- Index(es):
Relevant Pages
|