我在Visual Studio 2010中開發了一個與SQL Server 2008數據庫連接的ASP.net 4.0中的應用程序。我使用SQL Server 2005 EXPRESS,OS Windows 2003 werver將我的ASP.net應用程序複製到Web服務器IIS 6.0。 當我嘗試瀏覽我的網站,我收到以下錯誤:將SQL Server 2008數據庫附加到SQL Server 2005時失敗
The database 'C:\TELEFOON\TELEFOON\APP_DATA\ASPNETDB.MDF' cannot be opened because it is version 655. This server supports version 611 and earlier. A downgrade path is not supported.
Could not open new database 'C:\TELEFOON\TELEFOON\APP_DATA\ASPNETDB.MDF'. CREATE DATABASE is aborted. An attempt to attach an auto-named database for file C:\Telefoon\Telefoon\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
我不明白這個問題,但沒有解決的辦法?
@ O.D爲什麼不上運行腳本?我只是試過「導出數據」嚮導來移動一個表格及其數據從2008年 - > 2005年,它工作得很好。例如,您也可以使用生成腳本嚮導來生成腳本(包括模式和數據),並且他們甚至可以在Management Studio中有選項來指定特定的下級目標(因此,您不包括選項,低版本可能)。你能解釋「不起作用」是什麼意思嗎? – 2012-08-02 13:28:59
隨着腳本它適用於小型數據庫,但我不能導出導入數據庫與4表和極少數據使用wizzard。 – CloudyMarble 2012-08-02 13:34:05
@O.D爲什麼你認爲這與版本有關? – 2012-08-02 13:34:49