To get list of SQL Server instances on (DOS) command prompt use any of the following commands.
-
SQLCMD -L
OSQL -L
Please note L must be capital. These commands will show SQL Server instances of any versions installed on a machine.
D365, Power Platform, O365, Azure and more
To get list of SQL Server instances on (DOS) command prompt use any of the following commands.
OSQL -L
Please note L must be capital. These commands will show SQL Server instances of any versions installed on a machine.