简体   繁体   English

SQL Server 2005和2008之间的命令差异

[英]Difference of Commands between SQL Server 2005 and 2008

I have looked through many pages trying to find this information but all I get is the backbone structure and how the SQL server runs. 我浏览了许多页面,试图找到此信息,但我所获得的只是骨干结构以及SQL Server的运行方式。 What I would like to know is the difference of commands. 我想知道的是命令的区别。 Which commands can you use in 2008 but are not supported in 2005 with or without adjusting the compatibility level. 您可以在2008年使用哪些命令,但是在不调整兼容性级别的情况下,2005年将不支持哪些命令。 I design different queries and my clients differ in their database versions. 我设计了不同的查询,并且我的客户的数据库版本不同。 So when I create something, I would like to know if it will work before I put the time in or start actually breaking my head over why the code doesn't work on the clients computer but it does on mine. 因此,当我创建某些东西时,我想知道它是否会起作用,然后再花时间或开始让我为解决为什么代码在客户端计算机上不起作用而在我的计算机上起作用而烦恼。 An example would be Pivot where I have to change the compatibility. 一个例子就是我必须更改兼容性的Pivot。

So what commands have changed? 那么哪些命令已更改? Either a link to a page or if it's not much to type out, it would be greatly appreciated. 链接到页面,或者输入的链接不多,将不胜感激。

这篇Technet文章列出了SQL 2008 T-SQL中的新命令

There is some info here but it's not a whole lot so I am suspect that it's complete listing 这里有一些信息,但不是很多,所以我怀疑它是完整的清单

http://msdn.microsoft.com/en-us/library/ms143179(v=sql.100).aspx http://msdn.microsoft.com/zh-CN/library/ms143179(v=sql.100).aspx

Version control! 版本控制!

Usually lower version's commands are available and work well in higher versions. 通常,较低版本的命令可用,并且在较高版本中运行良好。 But not quite the other way around. 但并非完全相反。 Take a look at the following post. 看看下面的帖子。

For each major version Microsoft does release improvements done or changes made under product info. 对于每个主要版本, Microsoft都会根据产品信息发布已完成的改进或所做的更改。

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

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