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
393 stars 62 forks source link

Don't use SQLCMDPASSWORD env var if SQLCMDUSER env var not set #272

Closed stuartpa closed 1 year ago

stuartpa commented 1 year ago

If users have set SQLCMDPASSWORD as part of normal sqlcmd usage, we were using that, when SQLCMDUSER was not set (and setting SQLCMDUSER from sqlconfig file), this was causing login failures.