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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -