Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.
/ query2xls Public archive

Exports a SQL Query from a SQLExpress database to a xls file.

Notifications You must be signed in to change notification settings

binderplus/query2xls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL2XLS

Queries a SQLExpress server instance and exports the result into a spreadsheet.

Usage

sql2xls /path/to/config.json

Where config.json is something like this:

{
	"username": "user",
	"password": "pass",
	"server"  : "localhost",
	"database": "SIGA",
	"output"  : "Customers.xls",
	"query"   : "SELECT * FROM Customers"
}

This will execute SELECT * FROM Customers and output the result to Customers.xls (relative to config.json). If omitted it will be set to config.xls (same name as the .json but with different extension)

If query is omitted, it will try to read config.sql instead (same name as the .json but with different extension). You can also specify which file to read by setting the read parameter.

Any parameter can be overwritten by passing an argument. For instance, executing query2xls /path/to/config.json --output another-file.xls will execute the config file exactly but with a different output file.

About

Exports a SQL Query from a SQLExpress database to a xls file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published