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
323 stars 56 forks source link

implement -L for local instances #483

Closed shueybubbles closed 7 months ago

shueybubbles commented 7 months ago

Fixes #474 I reused some code from the go-mssqldb driver to query the local browser service to enumerate instances. It will now print nothing instead of a weird line of gibberish if no instances are found.