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.
    
        
            
                
                    
                        
                            
                                | 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 exampletrim(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.  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |