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 2005 Forums
 Transact-SQL (2005)
 Trim question

Author  Topic 

OldMySQLUser
Constraint Violating Yak Guru

301 Posts

Posted - 2008-09-25 : 08:05:31
How can I trim all the excess left and right spaces from all the rows for a single column in a table please?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-25 : 08:07:41
SELECT LTRIM(RTRIM(Column)) FROM YourTable
Go to Top of Page

OldMySQLUser
Constraint Violating Yak Guru

301 Posts

Posted - 2008-09-25 : 08:19:32
Many thanks. Foolish me was looking for an alltrim
Go to Top of Page
   

- Advertisement -