|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
rebuilding an autoincrement field
I have a unique, auto incremented field I am using for sorting purposes. I need to be able to change this sort field in a given row to the sort value of another row. Since this field needs to be unique i need the old sort field incremented by one and all the rows with a sort field greater than the sort field to be incremented by one as well. I can do this progammatically but I was hoping MSSQL had something similar built in...
I have searched this forum as well as a couple others and could not find an answer. |
|
#2
|
||||
|
||||
|
Writing a one-time-use SQL document would probably be easiest...
![]() |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > rebuilding an autoincrement field |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|