Query an ODBC data source and output the result as CSV.
shell
odbcsv --output query.csv --connection-string "Driver={SQL Server};Server=localhost;UID=SA;PWD=<YourStrong@Passw0rd>;" "SELECT title, year from Movies"
Use --help
to see all options.
Several installation options are available.
You can download the latest binaries here from the odbc-api
GitHub release: https://github.com/pacman82/odbc-api/releases/latest.
shell
cargo install odbcsv