If you ever need to find the ASCII code for a given character when using SQL Server, the T-SQL ASCII()
function is probably what you need.
The ASCII()
function returns the ASCII code value of the leftmost character of a character expression. Simply provide the character as an argument and SQL Server will return the ASCII value of that character (or the leftmost character in the string).