i wrote the below code that connect to sql server and export table results to .csv file. when using SSIS to export to a table the datatypes have too many spaces
sqlcmd S DBINSTANCE - E -i c:\test.sql -o c:files\test.csv -s "," -W -d DATABASENAME
the headers are coming outas
[name ] [varchar] (50),
[address ] [varchar] (200)
etc .................
it should be
[name] [varchar] (50),
[address] [varchar] ((200)
why is my sqlcmd file creating all these spaces with my column datatypes PLEASE ADVISE