Sql Server附加一个mdf文件 [英] Sql Server attach a mdf fle

查看:315
本文介绍了Sql Server附加一个mdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
i希望将数据库文件mdf附加到sql server 2008 r2或2012.

但我收到此错误

[Msg 950,20级,状态1,第1行

数据库'DatabaseName'无法升级,因为此版本的SQL Server不支持其非发行版本(539)。您无法打开与此版本的sqlservr.exe不兼容的数据库。你必须重新创建数据库]。

如何解决这个错误?

如何将mdf文件转换为其他版本?

解决方案

对于SQL 2012,您只能从SQL 2005或更新版本附加/升级数据库(您只能从以下两个版本附加数据库)



如果数据库版本为2000或更低版本,请将数据库附加到任何较低版本(2005,2008,2008R2),将数据库级别(数据库属性)升级到最新版本,将其分离并最终将其附加到SQL Server 2012。

hi i want to attach a database file mdf to sql server 2008 r2 or 2012.
but i get this error
[Msg 950, Level 20, State 1, Line 1
Database 'DatabaseName' cannot be upgraded because its non-release version (539) is not supported by this version of SQL Server. You cannot open a database that is incompatible with this version of sqlservr.exe. You must re-create the database].
how can i solve this Error?
how can i convert a mdf file to other version?

解决方案

for SQL 2012 you can only attach / upgrade a database from SQL 2005 or newer (you can only attach databases from two version below)

if your database version 2000 or lower , attach the database to any of your lower edition (2005, 2008, 2008R2), upgrade the database level (database property) to latest version, detach it and attach it finally to your SQL Server 2012.


这篇关于Sql Server附加一个mdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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