所以我尝试用SSMS向导恢复一个.bak的sql,它似乎已经悬空了。我吹走了它。我读了一些stackoverflow对其他人的回答以及一些博客,所以我决定做一个查询
在2 GB的bak文件中,它仍在搅拌数小时,这段代码看起来好吗?
USE master;
GO
RESTORE DATABASE Spark
FROM DISK = 'F:\backups\Spark_backup_2017_03_26_020006_3893816\Spark_backup_2017_03_26_020006_3893816.bak'
WITH REPLACE, RECOVERY,
MOVE 'Spark' TO 'F:\Data\Spark.mdf',
MOVE 'Spark_Log' TO 'F:\Log\Spark_log.ldf';
GO
更新
好的,它完成了这些消息 什么看起来不好?
Processed 262248 pages for database 'Spark', file 'Spark' on file 1.
Processed 8 pages for database 'Spark', file 'Spark_log' on file 1.
Converting database 'Spark' from version 661 to the current version 852.
Database 'Spark' running the upgrade step from version 661 to version 668.
在版本#
中,最后一行重复多次然后最后2行
Database 'Spark' running the upgrade step from version 851 to version 852.
RESTORE DATABASE successfully processed 262256 pages in 4533.296 seconds (0.451 MB/sec).