https://github.com/iberisoft/sqlexec
A tool to execute scripts in Microsoft SQL Server
https://github.com/iberisoft/sqlexec
database-tool
Last synced: 3 months ago
JSON representation
A tool to execute scripts in Microsoft SQL Server
- Host: GitHub
- URL: https://github.com/iberisoft/sqlexec
- Owner: iberisoft
- Created: 2019-12-10T20:42:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T22:20:09.000Z (over 2 years ago)
- Last Synced: 2024-12-31T11:47:18.227Z (5 months ago)
- Topics: database-tool
- Language: C#
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SqlExec
[](https://github.com/iberisoft/SqlExec/actions/workflows/dotnet.yml)
This tool executes scripts in Microsoft SQL Server.
Usage: `SqlExec script-file [output-file]`. If `output-file` defined the script is treated as a query, resulting rows output to
the file in CSV format.## Configuration
The tool is configured in file `appsettings.json`.
Database connection is defined below:
```
{
"ConnectionString": "Server=(local)\\SQLEXPRESS;Database=XPacs;Trusted_Connection=True;MultipleActiveResultSets=true;Encrypt=False"
}
```