Experts,
I am using a batch file to execute OSQL, which executes an SP to extract data and place it in an CSV file. Then the batch file calls a vbscript file to relocate it and email it as an attachment.
My problem is this...
When the data is extracted the full db column width is used for the csv file column width.
(IE: the db field is a varchar 50, and the actual # of chars in the field is only 40, so it's padded with 10 more whitespaces)
Is there a way to remove the whitespace so the csv file does not show all the extra padding?
Thanks.
H.
Start Free Trial