Declare @i int;
declare @stringOfGuids nvarchar(max)='''70173C2D-0B8E-4043-BD14-665D5DCCF112'',''B0B7445C-DF50-4D49-BD4E-B74958FB0618''
,''70173C2D-0B8E-4043-BD14-665D5DCCF112''';
I have this string and I need to count the number of available guid which is three.
How can I get it in a Integer variable?
Something like this ?
select @i = count(@stringOfGuids)
but it returns 1, I need three as available guids are 3.