On 64-bit systems, when you run cliconfg.exe to create an alias, it by default starts the 64-bit version found in C: \ Windows \ System32 and puts the alias information in the registry on
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo
However, Visual Studio is a 32-bit application, so it cannot โseeโ the alias definition that was added to the registry in the default path (64-bit).
The solution is to create a 32-bit version of the alias, either by running the 32-bit version of cliconfg in C: \ Windows \ SysWOW64, or by adding the alias to the 32-bit equivalent location in the registry on
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSSQLServer\Client\ConnectTo
source share