Browse by Tags

All Tags » split (RSS)

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...
Posted by Madhivanan | 3 comment(s)

CSV to Multiple Columns

If the table is denormalised and has Comma Seperate Values in a column, this code will copy it to Multiple columns of a Normalised table declare @DeNormalisedTable table(data varchar(8000)) insert into @DeNormalisedTable select '1,Davolio,Nancy' union...
Posted by Madhivanan | with no comments
Filed under: , ,