问题描述
我有一个带有证书和密钥文件的SQL Server数据库备份文件发送给我。我想将备份文件还原到SQL 2019实例。
我将所有内容保存到c:\ Temp文件夹并运行以下命令。
use master
go
create master key encryption by password='My tough password';
create certificate xxx from file= 'Full path\xxx.cer'
with private key (file='Full path\xxx.pvk',decryption by password= 'another tough password');
go
这些命令运行正常,没有错误。当我还原数据库时,它失败并显示以下错误。可能是什么问题? 任何帮助将不胜感激。 谢谢。
还原数据库“ DB NAME”失败。 (Microsoft.SqlServer.Management.RelationalEngineTasks)
其他信息:
System.Data.SqlClient.SqlError:找不到指纹为'0x5356D98F2426C40343AC43CC7CB8BF32BB8F8102'的服务器证书。 (Microsoft.SqlServer.SmoExtended)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)