I have a table containing tasks, and I want to give them explicit ordering based on the priority of the task. The only way I can do this is to use an int unique column that indexes where the task is in priority order (i.e. 1 - top 1000 - low).
The problem is that I want to update the task and set its priority to a lower value, I will have to update all the other lines between its current value and its new value.
Can anyone suggest a better way to implement this?
sql-server data-structures
Corin blaikie
source share