Trailing Spaces and BAT File CMD

If you're referring to this thread:

You can add the -W parameter to SQLCMD, or use the bcp utility as suggested. If all you're doing in your command script is to output data to CSV, bcp is a better option than SQLCMD.