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
325 stars 57 forks source link

connecting to localhost and/or the current context when running "sqlcmd bad-sub-command", when it should give an error #354

Closed JyotikaGargg closed 1 year ago

JyotikaGargg commented 1 year ago

When we do "sqlcmd badbad" it now connects to localhost on 1433 (or I presume the current context if there is one).... in v1.0 it does this:

 

 "C:\Program Files\SqlCmd\sqlcmd.exe" badbad sqlcmd.exe: error: unexpected argument badbad