Thank this author by sharing:
By Falguni Thakor, 2012/12/10
Just run above script to create a function that return a table from comma seperated string. Use below statement to execute script:
select * from dbo.[fnGetTableFromCSV]('A,b')
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