microsoft / microsoft/go-sqlcmd
`sqlcmd create` add "--open ads --file https://aka.ms/my-repro.sql"
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 595
- Forks
- 91
- Avg merge
- 9h 35m
- Merged PRs (30d)
- 1
Description
The sqlcmd create command makes it much easier to share a local environment with others using a single command-line that runs on every common OS (Windows/Mac/Linux).
To also enable sharing of a "repro" script in the same single command-line add --open ads --file https://aka.ms/repro.sql" to sqlcmd create
e.g.:
sqlcmd create mssql --using https://aka.ms/AdventureWorksLT.bak --open ads --file https://tiny.url/my-repro.sql
This command would not "execute" any SQL. It would load the my-repro.sql in an ADS query windows, and connect to the SQL Server just started in a local container.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the sqlcmd create command and its existing --using handling, then review how sqlcmd open ads connects to a local SQL Server. Add support for --open ads --file <URL> so the command opens the downloaded repro script in an Azure Data Studio query window without executing it; verify the example command across supported operating systems.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, sql
- Domain
- cli, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100