error restore 01

恢复 test的时候遇到了了 狗屎的问题

问题 1

use test 
go
restore database test
from disk =‘t:\badkup\test_full11192014';
with norecovery
  "because it is in use by this session. It is recommended that the master database be used when performing this operation"
原因 狗屁的
解决  不要用 test, 用其他的 database 什么系统db 自己创建的阿猫阿狗的db 
 
问题2 
use master
restore database test
from disk =‘t:\badkup\test_full11192014';
with norecovery
 
 the tail of the log for the database "test" has not been backed up. use backup log norecovery to backup the log if it contains work you dont want to lose.use replace or with stopat clause of the restorestatement to joust overwrite the contents of  the log.''
 原因 没有备份 tail 系统建议使用 replace 或者 stopat 来解决
 解决 替换 norecovery 或者是通过 studio 着tail的备份  右击要备份的db task  backup  选择 log 备份  在左边的 大窗 选择 选项 勾选 tail 备份
 
 
use master
restore database test
from disk =‘t:\badkup\test_full11192014';
with replace
 
it works

转载于:https://www.cnblogs.com/forint/p/4109468.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值