TRIM is not a recognized built-in function name
TRIM is introduced in SQL Server (starting with 2017).
In older version of SQL Server to perform trim you have to use LTRIM and RTRIM like following.
RTRIM(LTRIM(@variable))
TRIM is introduced in SQL Server (starting with 2017).
In older version of SQL Server to perform trim you have to use LTRIM and RTRIM like following.
RTRIM(LTRIM(@variable))