无法打开,因为它是版本782.此服务器支持版本706和更早版本 [英] cannot be opened because it is version 782. this server supports version 706 and earlier
问题描述
嗨朋友们,
我正在使用
Visual Studio Ultimate 2012
SQL Server 2014
在我的MVC4应用程序中,我添加了一个新项目ADO.NET实体数据模型(.edmx文件)。
测试连接时我遇到以下错误
数据库'C:/pubs.mdf'无法打开,因为它是版本782.此服务器支持版本706及更早版本。不支持降级路径
我应该使用较低的SQL服务器版本而不是2014年吗?
please帮助我吗?
我的猜测是pubs.mdf文件是由高版本创建的,并在低版本工具中打开。因为版本782是来自Sql Server 2014的数据库文件,所以版本706是来自Sql Server 2012的数据库文件。
您可以尝试这样做:工具>选项>数据库工具>数据连接> SQL Server实例名称
将SQL Server实例名称设置为(LocalDB)\ MSSQLLocalDB
参见:
http://stackoverflow.com/questions/26346647/the-database-cannot-be-opened-because-it-is-version-782-this-server-supports -ve
https://social.msdn.microsoft.com/Forums/ie/en-US/239ef852-653d- 4cbc-94a5-c2a4b201a0b0 / sql-server-2014-database-error-in-visual-studio-2012?forum = visualstudiogeneral
希望这会有所帮助
Hi Friends,
I am using
Visual Studio Ultimate 2012
SQL Server 2014
In my MVC4 application I added a new item ADO.NET Entity Data Model (.edmx file).
While Testing the connection i am getting following error
The database 'C:/pubs.mdf' cannot be opened because it is version 782. This server supports version 706 and earlier. A downgrade path is not supported
Should i use lower SQL server version instead of 2014?
please help me on this?
My guess is that pubs.mdf file is created by high version and opened in a low version tool. Because Version 782 is a database file from Sql Server 2014, Version 706 is a database file from Sql Server 2012.
you can try this: Tools > Options > Database Tools > Data Connections > SQL Server Instance Name
Set "SQL Server Instance Name" to "(LocalDB)\MSSQLLocalDB"
See also:
http://stackoverflow.com/questions/26346647/the-database-cannot-be-opened-because-it-is-version-782-this-server-supports-ve
https://social.msdn.microsoft.com/Forums/ie/en-US/239ef852-653d-4cbc-94a5-c2a4b201a0b0/sql-server-2014-database-error-in-visual-studio-2012?forum=visualstudiogeneral
Hope this will help
这篇关于无法打开,因为它是版本782.此服务器支持版本706和更早版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!