I have a table like this
Value String ------------------- 1 Cleo, Smith
I want to separate the comma delimited string into two colu
it is so easy, you can take it by below query:
DECLARE @str NVARCHAR(MAX)='ControlID_05436b78-04ba-9667-fa01-9ff8c1b7c235,3' SELECT LEFT(@str, CHARINDEX(',',@str)-1),RIGHT(@str,LEN(@str)-(CHARINDEX(',',@str)))