简体   繁体   English

SQL Server 2008兼容级别

[英]SQL Server 2008 compatibility level

After migrating a database from SQL Server 2000 to 2008, in what situations is it justified to leave compatibility level to 80 permanently. 将数据库从SQL Server 2000迁移到2008之后,在什么情况下永久保持兼容级别为80是合理的。 The system consists of stored procs, triggers, views and tables only. 系统仅包含存储过程,触发器,视图和表。 No DTS, reports and other non-database engine stuff. 没有DTS,报告和其他非数据库引擎的东西。

Some possible reasons: 一些可能的原因:

  • The *= and =* operators for outer join are supported with a warning message. 外部联接的*==*运算符支持警告消息。
  • SET XACT_ABORT OFF is allowed inside a trigger. 触发器内允许设置XACT_ABORT OFF。
  • For locking hints in the FROM clause, the WITH keyword is always optional. 对于FROM子句中的锁定提示,WITH关键字始终是可选的。
  • You use the following PIVOT, UNPIVOT, REVERT, TABLESAMPLE but not as keywords 您使用以下PIVOT, UNPIVOT, REVERT, TABLESAMPLE但不作为关键字
  • The FOR BROWSE clause is allowed (and ignored) in views. 视图中允许(并忽略)FOR BROWSE子句。
  • Character string constants and varbinary constants of size greater than 8000 are treated as text, ntext, or image. 大小超过8000的字符串常量和varbinary常量被视为text,ntext或image。

So if you are currently doing any of those things and don't want to rewrite anything you might consider staying at 80. 因此,如果您目前正在做任何这些事情,并且不想重写任何您可能考虑留在80的东西。

You can take a look at this link to see the full list. 您可以查看此链接以查看完整列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM