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 |
|
juicyapple
Posting Yak Master
176 Posts |
Posted - 2010-06-25 : 03:43:42
|
| Hello,Anyway to reorder the record no. without using cursor loop?Select Record_No From tblRecordRecord_No23467Recorder the data ascending and update the record no. toSelect Record_No From tblRecordRecord_No12345 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-06-25 : 03:49:42
|
| You just need a select statement instead of updateselect row_number() over (order by col) as recno from your_tableMadhivananFailing to plan is Planning to fail |
 |
|
|
juicyapple
Posting Yak Master
176 Posts |
Posted - 2010-06-25 : 03:57:09
|
quote: Originally posted by madhivanan You just need a select statement instead of updateselect row_number() over (order by col) as recno from your_tableMadhivananFailing to plan is Planning to fail
If I still need to update the Record_No? |
 |
|
|
juicyapple
Posting Yak Master
176 Posts |
Posted - 2010-06-25 : 04:17:17
|
I get the idea already. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-06-25 : 04:58:31
|
quote: Originally posted by juicyapple I get the idea already. 
What is the idea? MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|