我正在尝试按如下方式恢复备份:
Server sqlServer = new Server(new ServerConnection(banco, user, senha));
Restore dbRestore = new Restore() { Database = "a" + "" + txtBancoNuvem.Text.Trim(), Action = RestoreActionType.Database, ReplaceDatabase = true, NoRecovery = false };
dbRestore.Devices.AddDevice($@"{path}\DataBase\BackupNuvem.bak", DeviceType.File);
dbRestore.SqlRestore(sqlServer);
但我收到以下错误:
Operating System Error 3 (The system can not find the path specified.).
RESTORE DATABASE is terminating abnormally.
备份是在客户端计算机上完成的,我正在尝试将其恢复到服务器计算机上。我相信你会犯这个错误。我该如何解决这个问题?
守着一只汪
相关分类