Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sqlcmd no headers

sqlcmd -S . -d MyDb -E -s, -h-1 -W -Q "set nocount on;select 'account','rptmonth', 'thename';select account,rptmonth, thename from theTable"  
> c:dataExport.csv
Source by newbedev.com #
 
PREVIOUS NEXT
Tagged: #sqlcmd #headers
ADD COMMENT
Topic
Name
4+2 =