SQL Server 兼容模式
我们当前正在兼容模式 8 上运行服务器,我想更新它。
- 仅仅进入并改变它会产生什么影响?
- 什么可能会损坏?
- 在我执行之前,是否有任何方法可以检查数据是否会保留?
- 我可以回滚到模式 8 而不执行恢复且不会丢失数据吗?
We're currently running a server on Compatibility mode 8 and I want to update it.
- What are the implications of just going in and changing it?
- What is likely to break?
- Is there anything that checks the data will survive before I perform it?
- Can I rollback to mode 8 without performing a restore and without loss of data?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果你从 80 到 90,差异很小。 从 65 到 70+ 可能会造成严重影响(NULL 的存储方式不同)。
影响 - 您的 SP 可能会返回与您预期不同的结果
可能损坏:功能、SP
数据应该保存下来; 里面没有任何东西应该影响事情。
从 80 移动到 90 并返回只需几秒钟。 是的,您可以来回移动。
http://msdn.microsoft.com/en-us/library/bb510680.aspx
一些问题:http://mapamdug。 blogspot.com/2006/03/sql-server-2005-gotcha-1.html
If you're going from 80 to 90, the differences are minimal. Going from 65 to 70+ can cause severe impact (NULLs are stored differently).
Implications - your SPs can return different results than you'd expect
Likely to break: functions, SPs
Data should survive; nothing in there should affect things.
Moving from 80 to 90 and back only takes a few seconds. Yes, you can move back and forth.
http://msdn.microsoft.com/en-us/library/bb510680.aspx
some gotchas: http://mapamdug.blogspot.com/2006/03/sql-server-2005-gotcha-1.html
兼容模式禁用了新版本的功能,就我个人而言,我并没有真正使用过许多有问题的数据库,我们环境中的关键问题是迁移到 9 后,您无法再使用企业管理器来查看数据库。
备份/恢复是一个不错的选择,我也相信您可以毫无问题地将其翻转回来。
Compatibility mode disables the features of the newer version, personally I haven't really worked with many databases that have issues, the key thing that was a problem in our environment is after moving to 9, you can no longer use Enterprise Manager to view the database.
A backup/restore is a good option, and I also believe you can flip it back without any issues.
(我确实说过,只有当您从 6.5 开始迁移时,当 NULL - 70 及更高版本使用整个字段时,
char()
字段中不存储任何内容,这可能会导致巨大的大小变化。)VBStreets 的观点是正确的 - 并且绝对是在第 3 点上 - 当您在 2005 年第一次运行数据库时,它转换了数据结构。 如果您进行备份,则无论兼容性级别如何,都无法将其恢复到以前的版本。
(I did say it was only if you were moving from 6.5, which stored nothing in
char()
fields when NULL - 70 and greater use the whole of the field, which can cause massive size changes.)VBStreets is right on his points - and definitely on point 3 - when you first ran the database on 2005 it converted the data structure. If you take a backup, it cannot be restored on prior versions, regardless of the compatibility level.