I have a row in some kind of sql. I need to find out what a character is for this string, given the index.
eg.
DECLARE @someString NVARCHAR(MAX) = 'hi folks'
DECLARE @index INT = 4
now .. how to get the character in the 4th slot of the index, which is "f" in this example above.
thank:)
source
share