如何解决“数据库升级问题不是必需的” parmanantly? [英] How to resolve "database upgrade issue is not required" parmanantly?

查看:68
本文介绍了如何解决“数据库升级问题不是必需的” parmanantly?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi All,

In some of the machines, SQL database upgrade issue has been occurred. I can resolve this SQL database upgrade issue by using the following code,

SqlEngine engine = new SqlEngine(connecString);
engine.Upgrade();

The above mentioned error is resolved on first time running but i got following errors after second time,


"Database upgrade issue is not required. Database is already in a compatible format."


Is there any permanent solution to avoid this upgrade issue? Should i need to install any SQL packages? Please help me on this.





我尝试了什么:



我已经通过使用以下代码尝试了它,

SqlEngine engine = new SqlEngine(connecString);

engine.Upgrade();



但是第一次工作正常。第二,我得到第二个提到的错误。



What I have tried:

I have tried it by using the following code,
SqlEngine engine = new SqlEngine(connecString);
engine.Upgrade();

But it is working fine first time. On second, i am getting the second mentioned error.

推荐答案

数据库升级将数据库文件导入新版本的服务器,并写入一个新文件,即兼容该版本 - 该文件不能与以前版本的软件一起使用,因此在升级之前确保备份良好非常重要。

完成后,新文件是兼容,并且不需要再次升级,除非更改数据库引擎版本。这就是消息告诉你的:数据库已经升级,你不需要再做了。
A database upgrade imports the database file into the new version of the server, and writes a new file which is compatible with that version - the file cannot then be used with previous versions of the software, so it's very important to ensure you have good backups before you do the upgrade.
Once it's done, the new file is compatible, and doesn't need to be upgraded again, unless the database engine version is changed. That's what the message is telling you: The database has been upgraded and you don't need to do it again.


这篇关于如何解决“数据库升级问题不是必需的” parmanantly?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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