Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

"sqlcmd -L" not working as expected

$
0
0

When I use "sqlcmd -L" to discover SQL server instances I don't get any returned, even the local SQL Server instance I was after. If I use "osql -L" I get a list of SQL server instances as expected. See below

C:\Working\Git\Titan\Installer\TITAN.GETMonitoring>sqlcmd -L

C:\Working\Git\Titan\Installer\TITAN.GETMonitoring>osql -L

Servers:
    (local)
    55DD2W
    RUI8\EEW_SQLEXPRESS

What is the difference, what command should be used?

Note: I can use SQLCMD to logon to the local SQL server just fine. 


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>