sql server - SSMS output delimited files with headers -
is there way using ssms or other tool output 600 tables sql server database. catch need have column headers. need dump 600+ tables bar '|' delimiter, , need have column names in first row.
if remember right should able use command line sqlcmd tool export data headers. this:
sqlcmd -s localhost -d yourdatabase -e -q “select * yourtable” -o “csvdata.csv” -w -w 1024 -s”|”
you'll have options them right.
Comments
Post a Comment