https://github.com/eitanblumin/sqlcmd-gui
An attempt to implement a graphical user interface based on SQLCMD for executing parameterized TSQL scripts
https://github.com/eitanblumin/sqlcmd-gui
Last synced: 4 months ago
JSON representation
An attempt to implement a graphical user interface based on SQLCMD for executing parameterized TSQL scripts
- Host: GitHub
- URL: https://github.com/eitanblumin/sqlcmd-gui
- Owner: EitanBlumin
- License: mit
- Created: 2025-06-23T14:16:26.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-06-23T15:30:30.000Z (4 months ago)
- Last Synced: 2025-06-23T15:33:03.480Z (4 months ago)
- Language: C#
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqlcmd-gui
An attempt to implement a graphical user interface based on SQLCMD for executing parameterized TSQL scripts.
This repository contains a minimal Windows desktop application for executing parameterized SQL scripts with `sqlcmd`.
The application allows you to:
1. Browse for a `.sql` file.
2. Automatically detect SQLCMD variables in the script that are not defined by `:setvar` commands and prompt for their values.
3. Enter SQL Server connection information.
4. Execute the script via the `sqlcmd` command-line tool and display the output.The source is implemented as a WPF project targeting .NET 6.0.
## Building
Use the .NET SDK on Windows:
```bash
dotnet build SqlcmdGuiApp/SqlcmdGuiApp.csproj
```## Running
After building, run the produced executable or start it with `dotnet run`:
```bash
dotnet run --project SqlcmdGuiApp/SqlcmdGuiApp.csproj
```You need the `sqlcmd` utility available in your PATH for the execution step to work.
Any unhandled errors encountered by the application are written to `error.log` in the application directory.