简体   繁体   English

SQL Server查询兼容性

[英]SQL Server Query Compatibility

Do SQL Server Management Studio versions have different compatibility when it comes to query or scripts because I'm running SQL Server 2014 that I haven't tried running my query in another versions? SQL Server Management Studio版本在查询或脚本方面是否具有不同的兼容性,因为我正在运行SQL Server 2014,但我没有尝试在其他版本中运行查询?

Thanks in advance! 提前致谢!

There is some points that you need to note: 您需要注意以下几点:

1- Management Studio: This is a client tool to work with different SQL Server services. 1- Management Studio:这是用于与其他SQL Server服务一起使用的客户端工具。

SQL Server Management Studio (SSMS) is an integrated environment for managing any SQL infrastructure. SQL Server Management Studio(SSMS)是用于管理任何SQL基础结构的集成环境。 Use SSMS to access, configure, manage, administer, and develop all components of SQL Server, Azure SQL Database, and SQL Data Warehouse. 使用SSMS访问,配置,管理,管理和开发SQL Server,Azure SQL数据库和SQL数据仓库的所有组件。 SSMS provides a single comprehensive utility that combines a broad group of graphical tools with a number of rich script editors to provide access to SQL Server for developers and database administrators of all skill levels. SSMS提供了一个综合的实用程序,该实用程序将广泛的图形工具与许多丰富的脚本编辑器结合在一起,以为所有技能水平的开发人员和数据库管理员提供对SQL Server的访问。 https://docs.microsoft.com/en-us/sql/ssms/sql-server-management-studio-ssms?view=sql-server-2017 https://docs.microsoft.com/en-us/sql/ssms/sql-server-management-studio-ssms?view=sql-server-2017

2- Compatibility issues: There is some features that are shipped in instance level such as AlwaysOn Availability Groups, that are introduced in SQL Server 2012, so it is clear that you can not use it in SQL Server 2008. There is some other features that are shipped in database level or are related to TSQL. 2-兼容性问题:在实例级别附带了一些功能,例如SQL Server 2012中引入的AlwaysOn可用性组,因此很明显,您不能在SQL Server 2008中使用它。还有一些其他功能以数据库级别交付或与TSQL相关。 such as TSQL, CONCAT function that is introduced in SQL Server 2012, so clearly if you want to execute a script containing CONCAT function in SQL SERVER 2008, it will be failed as this function is not available. 例如TSQL,SQL Server 2012中引入的CONCAT函数,因此很明显,如果要在SQL SERVER 2008中执行包含CONCAT函数的脚本,由于该函数不可用,它将失败。

Finally we have a Compatibility Level that you can set it per database, that sets certain database behaviors to be compatible with the specified version of SQL Server. 最后,我们有一个Compatibility Level ,您可以为每个数据库设置该Compatibility Level ,该Compatibility Level将某些数据库行为设置为与指定版本的SQL Server兼容。 https://docs.microsoft.com/en-us/sql/t-sql/statements/alter-database-transact-sql-compatibility-level?view=sql-server-2017 https://docs.microsoft.com/en-us/sql/t-sql/statements/alter-database-transact-sql-compatibility-level?view=sql-server-2017

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

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