SQLServer__问题记录

“备份集中的数据库备份与现有的xx数据库不同”  参考链接: http://www.cnblogs.com/huangfr/archive/2012/08/09/2629687.html

        

1 RESTORE DATABASE xxx
2 FROM DISK = 'E:\DB\xxx.bak'   --bak文件路径
3 with replace,
4 MOVE 'xxx' TO 'D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\xxx.mdf',   --mdf文件路径
5 MOVE 'xxx_log' TO 'D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\xxx.ldf'   --ldf文件路径

 

 

posted @ 2015-04-10 10:46  SharpL  阅读(142)  评论(0编辑  收藏  举报