I have the following string:
bzip2,1,668,sometext,foo,bar
How can I SELECT only sometext,foo,bar? The length of the string pre
sometext,foo,bar
I just figured out something that works:
declare @v varchar(max) = 'bzip2,1,668,sometext' select substring(@v, CHARINDEX(',', @v, CHARINDEX(',', @v, CHARINDEX(',', @v)+1)+1)+1, len(@v))