This is a short piece of T-SQL code that will resequence the lines in a grid.
The table that we're resequencing has three unique keys, you'll need to adjust the code to work for your table