Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
PHUser
Starting Member
11 Posts |
Posted - 2010-03-10 : 12:56:50
|
| I have a list of ids in a particular order. I am passing this as a comma-delimited string to a stored procedure. I need to update a table and the sort field according to the order in which the ids came in.for eg.SortTableId SortColumn100 0105 1102 2104 3200 4Now passing in the list of ids to stored procids = '100,102,104,200,105'Result after stored proc runsSortTableId SortColumn100 0105 4102 1104 2200 3Can you please help me with the SQL? |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|
|