An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# SqlExec

[![.NET](https://github.com/iberisoft/SqlExec/actions/workflows/dotnet.yml/badge.svg)](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"
}
```