如題:
出現下面的錯誤提示:
Device activation error. The physical file name 'C:\Program Files\Microsoft SQL Server\MSSQL\data\unimain.mdf' may be incorrect.
[Microsoft][ODBC SQL Server Driver][SQL Server]File 'UNIMAIN' cannot be restored to 'C:\Program Files\Microsoft SQL Server\MSSQL\data\unimain.mdf'. Use WITH MOVE to identify a valid location for the file.
[Microsoft][ODBC SQL Server Driver][SQL Server]Device activation error. The physical file name 'C:\Program Files\Microsoft SQL Server\MSSQL\data\unimain_log.ldf' may be incorrect.
[Microsoft][ODBC SQL Server Driver][SQL Server]File 'UNIMAIN_log' cannot be restored to 'C:\Program Files\Microsoft SQL Server\MSSQL\data\unimain_log.ldf'. Use WITH MOVE to identify a valid location for the file.
[Microsoft][ODBC SQL Server Driver][SQL Server]RESTORE DATABASE is terminating abnormally.我的unimian.mdf放在E盤
謝謝!

解决方案 »

  1.   

    是數據庫存在還原,還是直接用備份文件還原。。
    出錯在The physical file name 'C:\Program Files\Microsoft SQL Server\MSSQL\data\unimain.mdf' may be incorrect
    數據庫文件存放位置,指定正確的文件夾路徑
      

  2.   


    错误信息说的很清楚了. 用WITH MOVE....
      

  3.   

    解決了,還原時,在Opition中重新設置還原到的庫的路徑即可