How to get SQL Server instance names on command prompt ?

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.

Reference: http://stackoverflow.com/questions/141154/how-can-i-determine-installed-sql-server-instances-and-their-versions

Advertisements

#sql-server, #sql-server-tips