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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2001-12-03 : 08:34:42
|
| pragnesh writes "when i run select <colon_name> from tablename i got results which are show as new line for each record i want to see the records as tab delimated or any another character" |
|
|
Teroman
Posting Yak Master
115 Posts |
Posted - 2001-12-03 : 08:53:03
|
| try this, for comma delimited, but you get the ideadeclare @string varchar(4000)declare @delim char(1)set @delim = ','select @string = isnull(@string+@delim,'') + columnfrom tableselect @stringyou will need some convert() s on the column if it is a number not a characteregselect @string = isnull(@string+@delim,'') + convert(varchar(10),column)from tableinsteadhope thats what you're aftercol |
 |
|
|
|
|
|