I have a string like so:
DECLARE @columnCamera varchar(MAX) = 'aaa,bbb,ccc'
and I am trying to split these and loop through, I am stuck on the splitting part:
SELECT * FROM STRING_SPLIT(@columnCamera, ',')
But I get this error:
Invalid object name 'STRING_SPLIT'.
What is the proper way to split a string and loop through it?