d AzureDemo50 -T returns the result without column.
For example, the following command: bcp 'SELECT * FROM dbo04.ExcelTest' queryout ExcelTest.csv -t, -c -S. There are many questions on the Internet about using bcp utility to export SQL Server data to CSV file. bcp is an SQL Server command line utility. SQL Server Data Export to CSV using BCP.We are going to use the excellent Excel::Writer::XLSX module written by John McNamara and we are going to see several use-cases, based on the examples supplied with the package.No data leave your computer ! Use it also to learn how to use our packages and to test the various options interactively. This is a full-featured CSV parsing tool running entirely on your browser. I used the LibreOffice commandline to convert a sample csv file: soffice -convert-to ods koko.csv -headless So to use it in a batch command would be.