RESTORE DATABASE CTSDW
FROM DISK = '\\detego-ctsetl\Backup\CTSDW\CTSDW_backup_20160722110003_Full.bak'
WITH MOVE 'CTSDW' TO 'H:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW.mdf'
,MOVE 'CTSDW_1' TO 'H:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_1.ndf'
,MOVE 'CTSDW_2' TO 'H:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_2.ndf'
,MOVE 'CTSDW_3' TO 'H:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_3.ndf'
,MOVE 'CTSDW_4' TO 'H:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_4.ndf'
,MOVE 'CTSDW_5' TO 'H:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_5.ndf'
,MOVE 'CTSDW_6' TO 'H:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_6.ndf'
,MOVE 'CTSDW_7' TO 'H:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_7.ndf'
,MOVE 'CTSDW_8' TO 'H:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_8.ndf'
,MOVE 'CTSDW_9' TO 'H:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_9.ndf'
,MOVE 'CTSDW_10' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_10.ndf'
,MOVE 'CTSDW_11' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_11.ndf'
,MOVE 'CTSDW_12' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_12.ndf'
,MOVE 'CTSDW_13' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_13.ndf'
,MOVE 'CTSDW_14' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_14.ndf'
,MOVE 'CTSDW_15' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_15.ndf'
,MOVE 'CTSDW_16' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_16.ndf'
,MOVE 'CTSDW_17' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_17.ndf'
,MOVE 'CTSDW_18' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_18.ndf'
,MOVE 'CTSDW_19' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_19.ndf'
,MOVE 'CTSDW_20' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_20.ndf'
,MOVE 'CTSDW_21' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_21.ndf'
,MOVE 'CTSDW_22' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_22.ndf'
,MOVE 'CTSDW_23' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_23.ndf'
,MOVE 'CTSDW_24' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_24.ndf'
,MOVE 'CTSDW_25' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_25.ndf'
,MOVE 'CTSDW_26' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_26.ndf'
,MOVE 'CTSDW_27' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_27.ndf'
,MOVE 'CTSDW_28' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_28.ndf'
,MOVE 'CTSDW_29' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_29.ndf'
,MOVE 'CTSDW_30' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_30.ndf'
,MOVE 'CTSDW_31' TO 'I:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_31.ndf'
,MOVE 'CTSDW_32' TO 'O:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_32.ndf'
,MOVE 'CTSDW_33' TO 'O:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_33.ndf'
,MOVE 'CTSDW_34' TO 'O:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_34.ndf'
,MOVE 'CTSDW_35' TO 'O:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_35.ndf'
,MOVE 'CTSDW_36' TO 'O:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_36.ndf'
,MOVE 'CTSDW_37' TO 'O:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_37.ndf'
,MOVE 'CTSDW_38' TO 'O:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_38.ndf'
,MOVE 'CTSDW_39' TO 'O:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_39.ndf'
,MOVE 'CTSDW_40' TO 'O:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_40.ndf'
,MOVE 'CTSDW_log' TO 'O:\MSSQL12.MSSQLSERVER\MSSQL\DATA\CTSDW_log.ldf'
,NOUNLOAD
,REPLACE
,STATS = 10

restore database的更多相关文章

  1. RESTORE DATABASE的standby选项

    RESTORE DATABASE [db1] FROM DISK = N'E:\Backup\db2.bak' , MOVE N'db1_Data' TO N'D:\Data\db2.MDF', MO ...

  2. (转载)RESTORE DATABASE命令还原SQLServer 2005 数据库

    今天恢复一个SQLServer2008R2,发现问题,然后通过园友的文章解决了问题,特记录备用 原文地址:http://www.cnblogs.com/adandelion/archive/2006/ ...

  3. 通过restore database时重命名数据库rename database

    backup database testdb to disk='c:\testdb_ful.bak' with compression backup log testdb to disk='c:\te ...

  4. RESTORE DATABASE命令还原SQLServer 2005 数据库

    --返回由备份集内包含的数据库和日志文件列表组成的结果集. --主要获得逻辑文件名 USE master RESTORE FILELISTONLY FROM DISK = 'g:\back.Bak' ...

  5. RESTORE DATABASE命令还原SQLServer 数据库 bak

    今天在sqlServer20005 的management studio里使用bak文件还原数据库的时候,总是失败!Restore failed for Server 'ADANDELI'.  (Mi ...

  6. SQL Server 还原错误“restore database正在异常终止 错误 3154”

    今天在还原数据库时,先建立相同名字的数据库,然后在该数据库上右键还原数据库.遇到了这样的一个错误: “备份集中的数据库备份与现有的 'RM_DB' 数据库不同. RESTORE DATABASE 正在 ...

  7. how to backup and restore database of SQL Server

    Back up 1,右键选中需要备份的数据库,Tasks-->Backup 2.General中,Destination,先remove掉之前的,然后再Add 需要注意的是,add的文件,必须要 ...

  8. Restore database use sql `*.bak` file

    1.第一步: 2.第二步: 3.第三布: 4.第四步:

  9. Restore Oracle database to another server

    1. Copy or remotely mount the backupset folder from the source server to the target server 2. On the ...

随机推荐

  1. [Ubuntu] change mouse scrolling between standard and natural

    Standard: sudo vi .Xmodmap insert the content as below pointer = Natural: sudo vi .Xmodmap insert th ...

  2. nginx,控浏览器缓存,前端优化方案

    1,困惑 做web项目,对于开发者来说,一个最头痛的问题就是浏览器缓存,有缓存,js更改了,html更改了,发布服务器以后用户往往无法通过浏览器访问到最新的类容,需要用户主动去刷新页面, 因为一直做企 ...

  3. PHP基础班初学感悟

    不知不觉差不多一个月就过去了 刚到培训班那时候的心情,现在也还能有所感觉 作为今年6月份的毕业生,刚从大学的实习期出来,辞掉了上一份工作,本来是打算找一份更加与专业挂钩的工作做的 也许是90后对网络的 ...

  4. Java设计模式(一)——代理模式

    有高手云:了解设计模式才算是入门级的程序员. 所以为了入门我打算把我学习到的设计模式逐条总结下来.和别人的文章不同,我几乎只提供了测试源码与细节分类.原因是,我相信对于设计来说,你永远无法给出终极答案 ...

  5. 《编写可维护的JavaScript》——JavaScript编码规范(二)

    昨天是我偶像生日,现在整个人都还好兴奋啊O(∩_∩)O~  闲话少说,让我先发篇随笔留念一下^_^ ////////////////////////////////正文分割线///////////// ...

  6. 山东省第七届ACM省赛------Julyed

    Julyed Time Limit: 2000MS Memory limit: 65536K 题目描述 Julyed is preparing for her CET-6. She has N wor ...

  7. 阻止iOS中页面弹性回滚,只允许div.phone_body的区块有弹性

    使用说明:只要替换选择器:var selector = '.phone_body'; /** * 阻止iOS中页面弹性回滚,只允许div.scroller的区块有弹性 */ (function () ...

  8. Excel 数据关联

    =INDEX(Sheet2!$A$2:$A$77,MATCH(A4,Sheet2!$C$2:$C$77,0))

  9. 配置L2TP IPsec VPN (CentOS 6.5)

    1. 安装相关包 yum install -y ppp iptables make gcc gmp-devel xmlto bison flex libpcap-devel lsof vim-enha ...

  10. hive1.2.1实战操作电影大数据!

    我采用的是网上的电影大数据,共有3个文件,movies.dat.user.dat.ratings.dat.分别有3000/6000和1百万数据,正好做实验. 下面先介绍数据结构: RATINGS FI ...