我在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