数据库不能打开,因为它是706版本 [英] The database cannot be opened because it is version 706

查看:9196
本文介绍了数据库不能打开,因为它是706版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我使用Visual Studio 2013就像是在本教程中描述的创建MDF文件,然后打开它的问题:

I have the problem that I am using Visual Studio 2013 to create a MDF file and then open it like it is described in this tutorial:

<一个href=\"http://www.asp.net/web-forms/overview/older-versions-security/membership/creating-the-membership-schema-in-sql-server-cs\"相对=nofollow>创建的非会员制的模式,在SQL服务器

但是,当我尝试将数据库附加到我的MSSQLServer得到错误948这basicly说:

But when I try to attach the database to the MSSQLServer I get error 948 which basicly says:

数据库无法打开,因为它是版本706该服务器
  支持版本663和更早版本。

The database cannot be opened because it is version 706. This server supports version 663 and earlier.

我看了这两篇文章:

<一个href=\"http://stackoverflow.com/questions/26346647/the-database-cannot-be-opened-because-it-is-version-782-this-server-supports-ve\">The数据库不能打开,因为它是782版本该服务器支持版本706和更早版本。不支持降级路径

<一个href=\"http://stackoverflow.com/questions/16656366/the-database-cannot-be-opened-because-it-is-version-706-asp-net\">The数据库不能打开,因为它是版本706(ASP.net)

从这个假设是可能的Visual Studio的切换到不同的SQL Server版本。所以,我可以删除我的旧文件,创建一个新的(在vS2013),然后将其连接到我的SQlServerEx preSS。

From this is assume that it is possible to switch "Visual Studio" to a different SQL Server Version. So I could delete my old file, create a new one (In vS2013 ) and then attach it to my SQlServerExpress.

我可以切换在

工具 - >选项 - >数据库工具 - >数据连接

Tools-> Options -> Database Tools -> Data Connections

到SQL版本(的LocalDB)\\ V10.0?如果是的话,还有什么理由不转,因为它可能会导致错误,或者在VS2013意外行为

to SQL version (LocalDB)\v10.0 ? And if so are there any reasons to not switch because it could lead to errors or unexpected behavior in VS2013

推荐答案

当你创建一个数据库,你可以指定兼容版本。这将关闭的功能,这将是在SQL Server中的一个较新的版本,但它是不可能的,你会使用这些,如果你只是有身份验证数据库。

When you create a database, you can specify the compatibility version. This turns off features that would be available in a newer version of SQL Server, but it is unlikely that you would be using those if you just have a database for authentication.

似乎只有SQL Server的防爆preSS 2008版R2(应用一些补丁)在你的问题的服务器。要在兼容版本创建的数据库,你必须要经过很多步骤(<一个href=\"https://www.mssqltips.com/sqlservertip/2810/how-to-migrate-a-sql-server-database-to-a-lower-version/\"相对=nofollow>全文):

It appears that only SQL Server Express version 2008 R2 (with some patches applied) in your problem server. To create your database in a compatible version, you have to go through many steps (full article):


  • 备份当前的数据库

  • 在数据库管理器,右击并选择生成脚本任务:

    • 脚本整个数据库

    • 保存到文件,并选择你的目标路径,选择的Uni code文本文件

    • 选择以下高级选项:

    • 脚本的服务器版本:SQL Server 2008 R2中

    • 数据脚本类型:架构和数据

    • 脚本外键:真

    • 脚本指标:真

    一个新的数据库,可与较早的MDF文件的工作(在合理范围内,Server 2012中不会再回到比2008年),但它不会能够创建一个MDF文件是使用旧版本兼容。

    A newer database can work with an older MDF file (within reason, Server 2012 won't go further back than 2008), but it won't be able to create an MDF file that is compatible with an older version.

    这篇关于数据库不能打开,因为它是706版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆