如題:
出現下面的錯誤提示:
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盤
謝謝!
出現下面的錯誤提示:
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盤
謝謝!
出錯在The physical file name 'C:\Program Files\Microsoft SQL Server\MSSQL\data\unimain.mdf' may be incorrect
數據庫文件存放位置,指定正確的文件夾路徑
错误信息说的很清楚了. 用WITH MOVE....