About 65,600 results
Open links in new tab
  1. How to trim a string in SQL Server before 2017? - Stack Overflow

    Oct 8, 2008 · in sql server 2008 r2 with ssis expression we have the trim function . SQL Server Integration Services (SSIS) is a component of the Microsoft SQL Server database software …

  2. TRIM is not a recognized built-in function name - Stack Overflow

    Jan 24, 2019 · 129 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.

  3. Remove all spaces from a string in SQL Server - Stack Overflow

    May 3, 2012 · 330 What is the best way to remove all spaces from a string in SQL Server 2008? LTRIM(RTRIM(' a b ')) would remove all spaces at the right and left of the string, but I also …

  4. Trimming text strings in SQL Server 2008 - Stack Overflow

    Aug 15, 2010 · SQL Server does not have a TRIM function, but rather it has two. One each for specifically trimming spaces from the "front" of a string () and one for trimming spaces from the …

  5. 'TRIM' is not a recognized built-in function name

    Jul 25, 2011 · For me using dbo.TRIM results in Cannot find either column "dbo" or the user-defined function or aggregate "dbo.TRIM", or the name is ambiguous.

  6. sql - using trim in a select statement - Stack Overflow

    Jan 1, 2011 · SELECT TRIM(myfield) FROM mytable; will work. Make sure also that you are not confusing the way the SQL interpreter adds padding chars to format the data as a table with …

  7. sql - Trim spaces in string - LTRIM RTRIM not working - Stack …

    If that happens, SQL built in functions for trimming whitespaces do not work so it becomes necessary to replace the “other” whitespace characters with character 32. Then LTRIM and …

  8. sql server 2012 - How to trim the values passing the in clause of …

    Dec 30, 2016 · The function will left and right trim spaces of value in DB. So the value to compare must not contains the spaces. I think it's very obvious.

  9. sql - Difference between LTRIM and LTRIM with RTRIM - Stack …

    Nov 4, 2020 · Of course, you could trim both with TRIM in more recent versions of SQL Server (2017+), however, any trim operations will make your query non-SARGable, which could …

  10. Removing leading zeroes from a field in a SQL statement

    Sep 18, 2008 · So, for example, if the field contains '00001A', the SELECT statement needs to return the data as '1A'. Is there a way in SQL to easily remove the leading zeroes in this way? …