Avatar of 25112
25112

asked on 

avoiding the dashes in the sqlcmd output...

sqlcmd -S . -d AzureDemo50 -E -s, -W -Q "SELECT * FROM dbo04.ExcelTest" > ExcelTest.csv
example from
http://www.excel-sql-server.com/sql-server-export-to-excel-using-bcp-sqlcmd-csv.htm

give the header with dashes (-------) for every column.. is there a way that can be suppressed and avoided?
Microsoft DOSPowershellMicrosoft SQL Server 2008SQL

Avatar of undefined
Last Comment
oBdA

8/22/2022 - Mon