I am trying to write a stored procedure which accepts a string parameter and returns it with each character separated by a full stop.
So for example I want the SP to accept parameter DOG and return D.O.G.
I have tried to use the STRING_SPLIT function as follows:
select STRING_SPLIT(@myString, '')
but it doesn't seem to be compatible with the version of SQL I'm using (2014) (the error message says it is not a recognised function). Even if it did work I'm not sure how to then insert full stops.
It seems like there should be an easy way to do this but I just can't find it!
Please let me know if you need any further information.
Many thanks.