go-sqlcmd icon indicating copy to clipboard operation
go-sqlcmd copied to clipboard

Add support for JSON/YAML/XML of query results

Open stuartpa opened this issue 2 years ago • 0 comments

Enable:

sqlcmd -Q "select my_col from my_table" --output json

And the output to stdout is json/yaml/xml etc. encoding of the result set. (probably following the server side FOR XML AUTO / FOR JSON AUTO encoding strategy)

stuartpa avatar Oct 25 '22 17:10 stuartpa