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
 Development Tools
 ASP.NET
 performance Issue

Author  Topic 

mr_dayal
Starting Member

37 Posts

Posted - 2008-07-01 : 05:32:39
Is there any difference in using Trim function in two different ways.
For example
trim(str) and str.trim . Where str is any string variable.

Someone told me that trim(str) is slower then str.trim . Is this true?


Mr Dayal

Zack
Starting Member

26 Posts

Posted - 2008-07-01 : 07:28:28
trim(str) is part of the vb runtime and from what I have understood is that it's better to use the newer .Net methods so I would use str.trim() insted. I don't have any benchmark numbers to back this up though.
Go to Top of Page
   

- Advertisement -