I want to extract all the values from the below string in sql
String = \301+1\123+1\152+1\
expected output
301
123
152
Hi satabeach,
Use the SplitString function from below article.
SQL
SELECT * FROM ( SELECT REPLACE(REPLACE(Item,'1\',''),'\','') Item FROM dbo.SplitString('\301+1\123+1\152+1\', '+1\') ) t WHERE t.Item <> ''
Output
Item
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.