About 8,000,000 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 that can …

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

    May 3, 2012 · 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 need to …

  3. SQL Server TRIM character - Stack Overflow

    Oct 20, 2011 · 27 Another pretty good way to implement Oracle's TRIM char FROM string in MS SQL Server is the following: First, you need to identify a char that will never be used in your string, for …

  4. Remove Trailing Spaces and Update in Columns in SQL Server

    23 SQL Server does not support for Trim () function. But you can use LTRIM () to remove leading spaces and RTRIM () to remove trailing spaces. can use it as LTRIM (RTRIM (ColumnName)) to …

  5. How to remove white space characters from a string in SQL Server

    Jan 8, 2013 · I'm trying to remove white spaces from a string in SQL but LTRIM and RTRIM functions don't seem to work? Column: [ProductAlternateKey] [nvarchar](25) COLLATE …

  6. TrimEnd Equivalent in SQL Server - Stack Overflow

    Jan 28, 2015 · sql sql-server-2008 trim asked Jan 28, 2015 at 11:17 Vignesh Kumar A 28.6k 14 67 119

  7. Best approach to remove time part of datetime in SQL Server

    Jul 24, 2009 · it extends to work out first day of month, tomorrow, etc by changing "0" base Edit, Oct 2011 For SQL Server 2008+, you can CAST to date i.e. CAST(getdate() AS date). Or just use date …

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

    Sep 18, 2008 · 112 I am working on a SQL query that reads from a SQLServer database to produce an extract file. One of the requirements to remove the leading zeroes from a particular field, which is a …

  9. sql - Remove only leading or trailing carriage returns - Stack Overflow

    19 Following functions are enhanced types of trim functions you can use. Copied from sqlauthority.com These functions remove trailing spaces, leading spaces, white space, tabs, carriage returns, line …

  10. Remove the last character in a string in T-SQL? - Stack Overflow

    How do I remove the last character in a string in T-SQL? For example: 'TEST STRING' to return: 'TEST STRIN'