All applications that communicate with an instance of SQL Server do it by sending Transact-SQL statements to the server. The Transact-SQL statement: SELECT TRIM(' test ') AS Result;