Hi
I need to obtain the ALIAS definitions from a SQL Server installation for further processing. So anything that has to do with interface doesn't help.
In some installations I can fetch the ALIAS definitions from registry by executing
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo
reg query HKLM\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo
reg query HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\MSSQLServer\Client\ConnectTo
reg query HKLM\SOFTWARE\WOW6432Node\Microsoft\MSSQLServer\Client\ConnectTo
Unfortunately this doesn't work on some SQLServer installation (i.e. 14.00.3162).
Is there any other way to get the ALIAS definitions ? Maybe by running a query against a system table ?
Andreas