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
 remove spaces

Author  Topic 

pmccann1
Posting Yak Master

107 Posts

Posted - 2007-01-25 : 11:17:46
is there a way to do remove spaces from a string if its they are in deifferent places on each row

snSQL
Master Smack Fu Yak Hacker

1837 Posts

Posted - 2007-01-25 : 11:52:59
Just use the replace function and replace spaces with blanks, for example

select replace('abc def 123 456 ', ' ', '')
Go to Top of Page
   

- Advertisement -