How can I output text until it is ascii in SQL? Here is what I am trying to do: But in the end I am getting an empty string. Why? What am I missing here? I am expecting the value of the @output to be ‘text’ in the end of the script. UPDATE If I update the script to the