microsoft / go-sqlcmd

The new sqlcmd, CLI for SQL Server and Azure SQL (winget install sqlcmd / sqlcmd create mssql / sqlcmd open ads)
https://learn.microsoft.com/sql/tools/sqlcmd/go-sqlcmd-utility
MIT License
343 stars 60 forks source link

Define a settings file for sqlcmd app #92

Open shueybubbles opened 2 years ago

shueybubbles commented 2 years ago

Trying to manage every possible setting through command line switches and environment variables can get unwieldy. We could create a .sqlcmdrc file in the user's profile that stores various settings which would be overridden by command line switches and environment variables.

shueybubbles commented 1 year ago

Note this file's contents would be different from what's stored in the user's connection config file. The settings I am talking about here are for app behaviors like max column width, error severity for exit, etc