microsoft / go-sqlcmd

The new sqlcmd, CLI for SQL Server and Azure SQL (winget install sqlcmd / sqlcmd create mssql / sqlcmd open ads)

Home Page:https://learn.microsoft.com/sql/tools/sqlcmd/go-sqlcmd-utility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Additional flags for delete command

dlevy-msft opened this issue · comments

Sometimes in a script you want to clean up an environment before running.

sqlcmd delete --remove-all would be helpful for bat scripts.

sqlcmd delete --context-only would be useful for environments where containers are created frequently and maintaining the context could be a security risk or just not useful due to subsequent scripts.

Also -q or something like it to delete but not suggest something is wrong (by outputting "no context found") if there is no context, for example.

I support it. One way to do this is to use the Viper
In addition, Viper allows you continue using the env variable, which I consider a great help.