The release of SQL Server 2022 in November 2022 introduced a bunch of new functionality, including some enhancements to the TRIM()
, LTRIM()
and RTRIM()
functions.
The enhancements in the LTRIM()
and RTRIM()
functions are different to those in the TRIM()
function. Below is a quick overview of the enhancements to these functions, along with examples.