Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 trim a record

Author  Topic 

loner2003
Starting Member

3 Posts

Posted - 2008-09-15 : 10:36:35
I have some records coming back with extra spaces before and after the results. For example, "TREE" is coming back as " TREE ". I can use the trim function in Excel to eliminate the extra spaces, but I was hoping there was a way to do it within the query itself. Any ideas?

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-09-15 : 10:40:17
LTRIM and RTRIM



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -