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 |
|
pelegk2
Aged Yak Warrior
723 Posts |
Posted - 2006-06-26 : 02:45:19
|
| i have few rows in a table like this :id,val1,6982,9453,2368i want to take all the values and convert them into 1 string in this structure : 698,945,2368iwhat the fastet easiet way withoughtthe need to use cursors?thnaksi n advancepelegIsrael -the best place to live in aftr heaven 9but no one wan't to go there so fast -:) |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
pelegk2
Aged Yak Warrior
723 Posts |
Posted - 2006-06-26 : 03:14:58
|
| nice solutionthnaks:)Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:) |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-06-26 : 04:14:33
|
| Note that you may have problem if the concatenated string exceeds 8000 characters. If you use front end application, do concatenation thereMadhivananFailing to plan is Planning to fail |
 |
|
|
pelegk2
Aged Yak Warrior
723 Posts |
Posted - 2006-06-26 : 04:39:43
|
| yes i thoght of that already and taken care of itthnaks for the tip any wayIsrael -the best place to live in aftr heaven 9but no one wan't to go there so fast -:) |
 |
|
|
|
|
|