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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Coma Seperated List

Author  Topic 

Lopaka
Starting Member

48 Posts

Posted - 2007-07-13 : 14:23:30
Creating a function,
I am trying to convert a column in a table to a comma separated variable. for example:

column
123
345
456

variable = 123, 345, 456

kind of backward but it is the current need... Thank you


Robert R. Barnes

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-07-13 : 15:18:12
There are plenty of CSV functions available here at SQLTeam if you really, really bad need to denormalize your table.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-07-13 : 19:42:36
http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-07-13 : 19:48:45
Or here : http://weblogs.sqlteam.com/dinakar/archive/2007/03/28/60150.aspx

Dinakar Nethi
************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-07-14 : 00:15:28
or at front end if OP uses it

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -