问题描述
我收到 Windows API 调用错误代码:0
I am getting Windows API Call Error Code : 0
我已经安装了 SSMS 2018 并试图找出我是否安装了任何其他版本.为此,我在 CMD 中运行 sqllocaldb versions
但收到以下消息:
I have installed SSMS 2018 and was trying to find out if I have any other versions installed. For that I ran sqllocaldb versions
in CMD but got the following message:
Windows API 调用RegGetValueW"返回错误代码:0.
当我手动检查(通过控制面板)时,我看到我安装了 2015 和 2016 版本.那么为什么它们没有显示在 CMD 中.
When I checked manually (via Control Panel), I saw that I have 2015 and 2016 versions installed. So Why it are they not showing in CMD.
我试图找到其他解决方案,但没有找到对我有意义的解决方案.
I tried to find other solutions but found nothing that made sense to me.
推荐答案
This post helped me:https://social.msdn.microsoft.com/Forums/sqlserver/en-US/1257bf26-6ab0-416d-bf26-34f128f42248/sql-2016-sp1-sqllocaldb-versions-errors-with-quotwindows-api-call-quotreggetvaluewquot?forum=sqlexpress
在注册表中更改目录名称
In registry change catalog name in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server Local DB\Installed Versions
匹配
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13E.LOCALDB\MSSQLServer\CurrentVersion
我的情况是,我不得不从 13.0 更改为 13.1.
I my case I had to change from 13.0 to 13.1.
这篇关于Windows API 调用“RegGetValueW"返回错误代码:0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!