I am using the STRING_SPLIT function to generate rows from a scalar value @ValueData VARCHAR(512) = "One, Two, Three" as follows
In my development database it works perfectly but in production I can't run it because I can't alter the COMPATIBILITY_LEVEL of the database. I would also like to learn an alternative way to do this without using a function.