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.


    OSQL -L

Please note L must be capital. These commands will show SQL Server instances of any versions installed on a machine.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s