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
 Need Help

Author  Topic 

shaggy
Posting Yak Master

248 Posts

Posted - 2007-12-31 : 07:20:50
Dear friends,

i have a table column like this
EmpID FirstName
1 Bob
2 Gina
3 Tim
4 Mary

i want result like this
firstname
BobGinaTimMary using a query

i tried cursor but the result length is comming below 1000/976
i have around 3000 column size

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-12-31 : 07:23:41
take a look here http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/rowset-string-concatenation-which-method-is-best.aspx


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

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-12-31 : 08:40:55
quote:
Originally posted by shaggy

Dear friends,

i have a table column like this
EmpID FirstName
1 Bob
2 Gina
3 Tim
4 Mary

i want result like this
firstname
BobGinaTimMary using a query

i tried cursor but the result length is comming below 1000/976
i have around 3000 column size



Are you using SQL Server 2000 or 2005?

Madhivanan

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

- Advertisement -