码迷,mamicode.com
首页 > 数据库 > 详细

SQLServer笔记

时间:2017-12-01 11:37:12      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:sqlserver   blog   pre   install   dea   sql   code   ase   ack   

SqlServer差异备份后的恢复

-- 第一步、恢复完全备份
RESTORE   DATABASE   idealmonitor
 FROM   DISK   =   ‘D:\INSTALL\SQLServer\MSSQL12.MSSQLSERVER\MSSQL\Backup\idealmonitor20171820.bak‘
WITH  MOVE   ‘idealmonitor‘   TO   ‘D:\INSTALL\SQLServer\MSSQL12.MSSQLSERVER\MSSQL\DATA\idealmonitor.mdf‘,
MOVE   ‘idealmonitor_log‘   TO   ‘D:\INSTALL\SQLServer\MSSQL12.MSSQLSERVER\MSSQL\DATA\idealmonitor_log.LDF‘, norecovery

-- 第二步、恢复差异备份
RESTORE   DATABASE   idealmonitor
 FROM   DISK   =   ‘D:\INSTALL\SQLServer\MSSQL12.MSSQLSERVER\MSSQL\Backup\diffbackup.bak‘
WITH  MOVE   ‘idealmonitor‘   TO   ‘D:\INSTALL\SQLServer\MSSQL12.MSSQLSERVER\MSSQL\DATA\idealmonitor.mdf‘,
MOVE   ‘idealmonitor_log‘   TO   ‘D:\INSTALL\SQLServer\MSSQL12.MSSQLSERVER\MSSQL\DATA\idealmonitor_log.LDF‘, recovery 

SQLServer笔记

标签:sqlserver   blog   pre   install   dea   sql   code   ase   ack   

原文地址:http://www.cnblogs.com/freelancy/p/7940502.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!