use master restore database AdventureWorks from disk = 'E:\databasebackup\AdventureWorks.bak' with replace, MOVE N'AdventureWorks_Data' TO N'C:\Program Files\Microsoft SQL Server\MSSQL.5\MSSQL\Data\AdventureWorks.mdf', MOVE N'AdventureWorks_Log' TO N'C:\Program Files\Microsoft SQL Server\MSSQL.5\MSSQL\Data\AdventureWorks_log.ldf'
从语句上来看,和在图形界面的操作是一样的,但是结果却是语句运行成功,图形界面怎么过不去。
补充资料:
今天给客户恢复他的美国VPS中的sql 2005的数据库的时候发现无论怎么恢复都会出现
标题: Microsoft SQL Server Management Studio ------------------------------
use master restore database ssc123 from disk = 'E:\1.bak' with replace, MOVE N'panydb' TO N'E:\MSSQL.1\MSSQL\Data\ssc123.mdf', MOVE N'ssc123_Log' TO N'E:\MSSQL.1\MSSQL\Data\ssc123_log.ldf'