BSW.Blog

Fast Way To Convert A Column to CSV.

Select replace	(
					(
					select name+','  from sys.databases  
						for xml path ('')
					)+',',',,',''
				) 

Result:

master,tempdb,model,msdb,Customers,ExternalDB

Babak
#column #SQL #SQLServer #CSV
1/29/2014 7:28:03 AM
Write Comment