备份数据问题
---无法打开备份设备 'C:\Northwind.bak'。出现操作系统错误 5(拒绝访问。)。BACKUP DATABASE 正在异常终止。--->
上面是错误信息??
谢谢!!
<---
if (cri.Fromat)
RunSql("BACKUP DATABASE Asset TO DISK ='" + cri.BackName + "' with format");
else
RunSql("BACKUP DATABASE Asset TO DISK ='" + cri.BackName + "' with noformat");-->
这是备份的语句??
也贴出恢复:
RunSql("use master RESTORE DATABASE Asset from disk='" + cri.ReSoreName + "'WITH file = " + cri.BkFile + "");
恢复还没测试.
谢谢!