hi,
i have one function which return list of values from comma seprated value
then i have one with cte which does it recusivly
third is this one , is there any other way exist and which one will be fast.
DECLARE @xml as xml,@str as varchar(100),@delimiter as varchar(10)
SET @STR=' , A ,B,C, D,E , '
SET @delimiter =','
SET @xml = cast(('<X>'+replace(@str,@delimiter ,'</X><X>')+'</X>') as xml)
SELECT ltrim(N.value('.', 'varchar(10)')) as value FROM @xml.nodes('X') as T(N)
yours sinclery