My problem seems to be very simple to solve but I don't know how to do this ;-(
I'm trying to make a query spool (by osql command line) to a txt file and white spaces are also spooled and I don't know how to avoid it.
osql -E -u -h-1 -s "," -i test.sql -o test.txt
SET NOCOUNT ON
1, 3, 2129, 0
2, 9, 2345, 9
and I'd like to have the output file like that - without leading spaces: