SqlLocalDb Versions - Windows API call RegGetValueW returned error code
I’ve met this error when I check the version of SQL Server LocalDb in my machine.
>sqllocaldb.exe versions
Error:
When I check the registry.
- Current version
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13E.LOCALDB\MSSQLServer\CurrentVersion
- Installed version
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server Local DB\Installed Versions
The two versions are inconsistent.
When I change the installed version folder name from “13.0” to “13.1”, the problem is solved.
Check the SQL Local Db version again in cmd, the version is correctly displayed.