Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Create CSV from column (SQL2K only)

By Calvin Lawson, 2013/05/24

This is a bummed version of many of the "csv creating" scripts I've seen.  No need to use a temp table or loop; the string can be built with one select statement (Select @String =  isnull(@String + ',','') + Column From Table)

Total article views: 325 | Views in the last 30 days: 3
 
Related Articles
FORUM

string Comparison.

'string' = 'string___' ???

FORUM

Manipulate String

String Output

FORUM

csv string

csv string

FORUM

string formatting

String Formatting

FORUM

parse/split string

string manipulation

Tags
t-sql    
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones