Hello All,
How to find out default sql instance on a machine. I am aware that running the below script would give all the instances on that machine, but how to find out which one is default among them.
master..xp_regenumvalues
'HKEY_LOCAL_MACHINE',
'SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL'
Is there any better approach for getting the default instance name.
Thanks
Naresh