, @Delimiter char(1) = ','
SELECT T.split.value('.', 'nvarchar(max)') AS data
FROM (
SELECT CAST('<d>' + REPLACE(Replace(Replace(@String,'&','&'),'<','<'), @Delimiter, '</d><d>') + '</d>' AS XML) as T1
) as XMLData
CROSS APPLY T1.nodes('/d') T (split)
here @String have 9 data, when @String have more than 2000 data at that time Query get very slow . is there any ohter solution to improve this query.
Thank you.