2011-06-03 63 views
1

當我將數據庫添加到Visual Studio 2010以製作MVC3應用程序時,發現此錯誤。我使用SQL Server 2008的將數據庫添加到mvc3應用程序時出錯

The database 'C:\USERS\KAPIL.AGRAWAL\DOCUMENTS\VISUAL STUDIO 2010\PROJECTS\DT\DT\APP_DATA\DTRIAL.MDF' 
    cannot be opened because it is **version 661**. 
    This **server supports version 655** and earlier. A downgrade path is not supported. 
    **Could not open new database** 'C:\USERS\KAPIL.AGRAWAL\DOCUMENTS\VISUAL STUDIO 2010\PROJECTS\DT\DT\APP_DATA\DTRIAL.MDF'. 
    CREATE DATABASE is aborted. 
    An attempt to attach an auto-named database for file c:\users\kapil.agrawal\documents\visual studio 2010\Projects\dt\dt\App_Data\dtrial.mdf failed. 
    A database with the same name exists, or specified file cannot be opened, 
    or it is located on UNC share. 
+1

你有什麼試過?您是否能夠消除最後一行中列出的任何可能的原因? – 2011-06-03 07:27:22

回答

0

看來,數據庫與SQL Server 2008 R2(611版本)創建,您要使用SQL Server 2008 RTM或SP1(版本655)打開它。您不能從較高版本備份/恢復或分離/附加到較低版本。您可以將本地數據庫服務器升級到SQL 2008 R2。有關更多信息,請參閱this article

相關問題