DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   MS SQL (http://www.daniweb.com/forums/forum127.html)
-   -   Identity Property problem (http://www.daniweb.com/forums/thread37241.html)

ssanthosh29 Dec 28th, 2005 4:44 pm
Identity Property problem
 
Hello every body,
Iam santhosh .I need help.Iam using MS Sql server 2000.I have one database.In a column of one table i haved set that to identity property that property generating serial numbers for that table .But that table is not updating.
Table 1
Sno SID Name
1 212 Klen
2 213 Lee
3 215 McGrat
etc..
After few days i want to delete ont row from the table

Table 2
Sno SID Name
2 213 Lee
3 215 McGrat

See that Sno I dont want to see 2,3 I want to see like this

Table 3
Sno SID Name
1 213 Lee
2 2i5 Mc Grat
Iwant to see like this table 3:


I should i do thta .Plss Help me

madmital Jan 7th, 2006 7:16 pm
Re: Identity Property problem
 
You cannot change values in Identity columns - not possible.
If you need to control the values in that particual column(for whatever reason) you need to drop the Identity property and do the whole thing manually.


All times are GMT -4. The time now is 7:04 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC