About 236,000 results
Open links in new tab
  1. Remove all leading zeros from a column of data in SQL?

    Mar 15, 2017 · I have a data table called 'ItemNum' The column is a SKU, which is all numbers...the current format is: 028200136107 I need to remove all leading zeros (0) from the …

  2. Using RTRIM, LTRIM with a LEFT Function. - SQLServerCentral

    May 10, 2022 · Is there a particular order for using the LTRIM, RTRIM with a LEFT function? Example - I only want the Left 35 from a field and want to trim any unnecessary off it.

  3. LTRIM and RTRIM not working – SQLServerCentral Forums

    May 28, 2014 · The LTRIM and RTRIM functions are working perfectly fine, it is your data that is at fault here. Once you figure out what characters are there you can handle them accordingly.

  4. TRIM () in T-SQL – SQLServerCentral

    Mar 11, 2008 · The T-SQL language expanded in SQL Server 2017 with the TRIM() function.

  5. T-SQL Language Changes in SQL Server 2022 Part 2

    May 2, 2017 · Learn about more of the T-SQL language changes in SQL Server 2022 to LTRIM, RTRIM, TRIM, GET_BIT, SET_BIT, LEFT_SHIFT, RIGHT_SHIFT, BIT_COUNT and more.

  6. Ltrim rtrim no working with UPDATE - SQLServerCentral Forums

    Feb 23, 2009 · Hi Friends, I am facing an Issue while writing an update statement. The statement is like below update tablename set colname = ltrim (rtrim (colname) where filter condition the …

  7. RTRIM not removing trailing spaces – SQLServerCentral Forums

    Jul 14, 2014 · Hi guys, I am loading a dimension using a distinct query. There are duplicates coming through and the only differnce is a trailing space on one of the columns. RTRIM is not …

  8. LTRIM () function in SQL Server – SQLServerCentral

    Feb 13, 2009 · LTRIM ():- This function is used to get the string after the removal of leading blank spaces. Syntax:- LTRIM ( character_expression ) For example:- Select LTRIM ...

  9. Trim Functions Not Working Properly - SQLServerCentral Forums

    Jun 20, 2006 · I imported an Excel spreadsheet into the database in its own table. I changed to column data type to varchar (255) and I am trying to use rtrim and ltrim to trim off the spaces …

  10. LTRIM,RTRIM - SQLServerCentral Forums

    Apr 2, 2013 · If I understanding correctly, LTRIM/RTRIM does not make any difference. If you want to include the leading and trailing spaces why are using either of the trim functions at all?