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
334 stars 58 forks source link

accept_eula gets saved into sqlconfig file by viper automatically #305

Open stuartpa opened 1 year ago

stuartpa commented 1 year ago

Viper automatically reflects SET SQLCMD_ env vars into the sqlconfig file. So when a user SET SQLCMD_EULA, accept_eula is getting persisted into the sqlconfig file. I don't think it is being honored when sqlcmd create is actually run, so it is benign, but it shouldn't be there.