+ 1

How to Trim all trailing and leading characters in a varchar

declare @message varchar (20), @trimmedMsg varchar(20) set @message = ' testmsg ' set @trimmedMsg = LTRIM(RTRIM(@message)) Is there any better way to do this

20th Sep 2017, 9:37 AM
Noorulla Khan
1 Answer