August 5, 2002 at 2:41 pm
Hello Everyone,
How do I trim the output of this query ?
use msdb
go
SELECT command FROM msdb.dbo.sysjobsteps
I do not want the extra spaces at the end of each row.
Thanks
Chandra
August 5, 2002 at 3:38 pm
You do or do not want to trim spaces?
ltrim() - trims left
rtrim() - trims right.
Steve Jones
August 6, 2002 at 6:57 am
Its not that I do or do not want to use those functions, the thing is they dont work.
I tried converting it to varchar,char, then ltrim/rtrim but somehow it does not work.
Please let me know if you have any other options.
Thanks,
Chandra
August 6, 2002 at 8:02 am
I just ran
SELECT command,len(command) FROM msdb.dbo.sysjobsteps
and didn't see and spaces at the end of command, are you talking about the grid output in query analyser?
Regards,
Andy Jones
.
August 6, 2002 at 8:12 am
I am talking about 'Result in Text' in QA,
(As I want to store the output in a txt file).
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply