Simple question - why when I print the value of the @len variable in the query below would I be getting the value 1, instead of 12 (the number of characters in the
@len
You need to give the variable @string an actual length. Print the variable @string and it will probably return 'C'.