我有兩個名爲.mdf
和.ldf
的數據庫文件,它們是在SQL Server 2012中創建的,現在在我的電腦上安裝了Visual Studio 2010和SQL Server 2008 Express 。如何在SQL Server 2012中創建的SQL Server 2008中附加數據庫
當我嘗試將這些數據庫文件附加到SQL Server 2008時,它給我錯誤。
The database 'C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL10.SQLEXPRESS\MSSQL\DATA\CMS_DB.MDF' cannot be opened because it is version 706. This server supports version 655 and earlier. A downgrade path is not supported. Could not open new database 'C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL10.SQLEXPRESS\MSSQL\DATA\CMS_DB.MDF'. CREATE DATABASE is aborted.
An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\CMD_DB.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
當打開數據庫SSMS中2008年則錯誤:
Attach database failed for Server 'MATRIX-PC\SQLEXPRESS'. (Microsoft.SqlServer.Smo)
Additional information:
An exception occured while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
The database 'C:\USERS\RAJ\DESKTOP\COLLEGE MANAGEMENT SYSTEM(.NET 4.5)\ COLLEGE MANAGEMENT SYSTEM\BIN\DEBUG\CMD_DB.MDF' cannot be opened because it is version 706.
This server supports version 655 and earlier. A downgrade path is not supported.
Could not open new database 'C:\USERS\RAJ\DESKTOP\COLLEGE MANAGEMENT SYSTEM(.NET 4.5)\COLLEGE MANAGEMENT SYSTEM\BIN\DEBUG\CMD_DB.MDF'. CREATE DATABASE is aborted.
(Microsoft SQL Server, Error: 948)
你**不能**這樣做 - 你**不能**附加/分離或備份/從**更新的**版本的SQL Server恢復到**更舊的**版本。只是**不能**完成。 –
真的,沒有辦法解決這個問題。如果有的話,然後指導我。 – argciv
解決方案是在所有平臺上使用**相同版本的SQL Server;爲什麼不直接在本地PC上下載並安裝SQL Server ** 2012 ** Express? –