String manipulation in T-SQL has always felt somewhat cumbersome ... These are my examples: SELECT Result = '[' + TRIM(n) + ']' , FirstLetter = ASCII(SUBSTRING(TRIM(n), 1, 1)) FROM ( VALUES (' ') , (' ' ) , ('Steve ') , ('Steve Jones') , (' Steve Jones ...
↧