944,175 Members | Top Members by Rank

Ad:
  • MS SQL Discussion Thread
  • Unsolved
  • Views: 4151
  • MS SQL RSS
Dec 28th, 2005
0

Identity Property problem

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ssanthosh29 is offline Offline
1 posts
since Dec 2005
Jan 7th, 2006
0

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.
Reputation Points: 10
Solved Threads: 5
Junior Poster
madmital is offline Offline
119 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MS SQL Forum Timeline: Need Help connecting to a view
Next Thread in MS SQL Forum Timeline: datetime format





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC