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)
 is there not a trim function ?

Author  Topic 

BitShift
Yak Posting Veteran

98 Posts

Posted - 2007-05-18 : 16:03:22
There is ltrim and rtrim, but what if i want to remove spaces from both ends of a string variable. Do I need to use both functions ?

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-05-18 : 16:09:10
yup.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2007-05-18 : 17:29:28
make sure you apply them in the correct order.




www.elsasoft.org
Go to Top of Page

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-05-18 : 17:39:36
quote:
Originally posted by jezemine

make sure you apply them in the correct order.




www.elsasoft.org



How does the order matter Jesse?

Dinakar Nethi
SQL Server MVP
************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-05-19 : 00:55:03
I am also interested to know how it matters

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2007-05-20 : 16:10:32
it doesn't of course. that was supposed to be a joke.


www.elsasoft.org
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-05-21 : 00:10:57
quote:
Originally posted by jezemine

it doesn't of course. that was supposed to be a joke.


www.elsasoft.org


Then you should have used

[joke]
comment
[/joke]



Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -