in

SQL Server Blogs

Voices from the UK SQL Server Community
All Tags » T-sql » parsename (RSS)

Browse by Tags

  • Splitting csv to columns

    Suppose you have string in csv format and want to split into seperate columns. You can use parsename function as long as you have maximum four values. The following would work for any number of values declare @s varchar ( 2000 ), @data varchar ( 2000 ) select @s = 'this,is,test' select @data = '''' ...
    Posted to Madhivanan (Weblog) by Madhivanan on Sat, Mar 15 2008
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems