t-sql trim code example Example: SQL SERVER 2016 TRIM -- Syntax for SQL Server and Azure SQL Database TRIM ( [ characters FROM ] string )