I would like to retrieve all the sql server istances on my sql server. I found this. With this sqlcmd utility I can retrieve the currently-running instance
select @@servername
go
but how can I have a list of all the instances in my sql server?
edit the solution proposed in this postenter link description here doesn't work.
I however found a solution using powershell using SQL Server Management Object SMO.