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
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Removing Extra white spaces

Author  Topic 

sg2255551
Constraint Violating Yak Guru

274 Posts

Posted - 2010-08-26 : 21:54:52
hi

I have a string: "Hello World and This is SQLTeam"

As you can see some words are seperated by 2 or more white spaces.

How do i remove extra white spaces between word and the expected result should be "Hello World and this is sqlteam"

Thanks

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2010-08-27 : 00:11:33
See first query here http://weblogs.sqlteam.com/peterl/archive/2009/08/23/CHAR0-is-not-that-innocent-you-may-think.aspx



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

sg2255551
Constraint Violating Yak Guru

274 Posts

Posted - 2010-08-27 : 03:11:09
Thanks. That helps alot.
Go to Top of Page
   

- Advertisement -