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
 General SQL Server Forums
 New to SQL Server Programming
 writing function in sql server

Author  Topic 

rameshgoudd
Starting Member

13 Posts

Posted - 2008-08-20 : 00:31:22
hi,

i have a table in sql server like this

username userid

ramesh 1

mahesh 2

i need the o/p like this..finally the function should return this value in this format(comma separeated)

ramesh,rakesh


thanks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-20 : 00:38:10
http://www.projectdmx.com/tsql/rowconcatenate.aspx
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-08-20 : 00:38:21
see
http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/rowset-string-concatenation-which-method-is-best.aspx

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254


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

Go to Top of Page
   

- Advertisement -