官术网_书友最值得收藏!

Chapter 4. Transact-SQL Enhancements

Each new SQL Server version brings numerous extensions and improvements to Transact-SQL language. Most of them are used to support newly added database engine features, but some of them address missing functionalities and limitations in previous versions. SQL Server 2016 comes up with many features that require extensions in Transact-SQL: temporal tables, JSON support, improvements for memory-optimized tables, columnstore tables and indexes, new security enhancements, and so on. They will be explored in detail in chapters dedicated to appropriate features.

This chapter covers small Transact-SQL features that can make developers' work more productive and enhancements that can increase the availability of database objects and enlarge the scope of existing functionalities, limited in the previous SQL Server versions.

This chapter is pided into the following three sections:

  • New and enhanced Transact-SQL functions and expressions
  • Enhanced DML and DDL statements
  • New query hints

In the first section, you will see new out-of-the-box functions and expressions that allow developers string manipulations, compressions with the GZIP algorithm, and playing with session-scoped variables. In addition, the removal of restrictions or limitations of some functions makes them more interesting for usage in SQL Server 2016.

The further sections cover enhancements in data manipulation and data definition statements. The most important one will let you change the data type or other attributes of a table column, while the table remains available for querying and modifications. This is a very important feature for systems where continuous availability is required. You will also be aware of other improvements that let you perform some actions faster or with less written code.

Finally, there will be a demonstration on how to use newly added query hints to improve query execution and avoid problems caused by the Spool operator or inappropriate memory grants.

主站蜘蛛池模板: 嘉禾县| 碌曲县| 禹州市| 卓尼县| 大邑县| 汉源县| 马边| 嵊泗县| 贵阳市| 黄山市| 宁陕县| 同江市| 巨野县| 探索| 海丰县| 都昌县| 乌审旗| 天水市| 通辽市| 垦利县| 卓尼县| 米易县| 广宁县| 平安县| 柞水县| 饶平县| 信宜市| 泽普县| 灵川县| 安丘市| 洪湖市| 织金县| 开封市| 东城区| 客服| 镇巴县| 仙游县| 大理市| 江北区| 江城| 建平县|