数据库文件与SQL Server的当前实例不兼容 [英] database file is not compatible with the current instance of SQL Server

查看:284
本文介绍了数据库文件与SQL Server的当前实例不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual-Studio2012,每当我尝试添加sql server 2012的.mdf文件时(从C:\Program Files \ Microsoft SQL Server \ MSSQL10_50.SQLEXPRESS \ MSSQL \DATA复制)到我网站的appdata文件夹显示

以下错误



i am using Visual-Studio2012, whenever i am trying to add a .mdf file of sql server 2012 (copied from C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA) to the appdata folder of my website it is showing
the following error

This database file is not compatible with the current instance of SQL Server.

To resolve this issue, you must upgrade the database file by creating a new data connection, or you must modify the existing connection to this database file.

plz help......

推荐答案

请参阅以下链接: -



http://chanmingman.wordpress.com/2012/03/07/this-database-file-is-not-compatible-with-current-instance-of-sql-server/ [ ^ ]
Refer below link:-

http://chanmingman.wordpress.com/2012/03/07/this-database-file-is-not-compatible-with-current-instance-of-sql-server/[^]


最简单的方法:



转到VisualStadio 2012

在服务器浏览器中Windows

打开数据连接

右键单击ASPNETDB.MDF

点击Modify Connection ...

a为您打开的新窗口...您只需单击确定

如果其他窗口打开则单击是

结束(是快乐):D
simplest way:

go to VisualStadio 2012
In Server Explorer Windows
open Data Connections
Right click on ASPNETDB.MDF
click on Modify Connection...
a new windows open for you ... you just click OK
if other windows open for you click Yes
FINISH ( be Happy ) :D


这篇关于数据库文件与SQL Server的当前实例不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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