Press "Enter" to skip to content

What Was New for T-SQL Developers in SQL Server 2016

Jeff Taylor hits us with a few things:

For background, 2016 is the release where SQL Server started meeting developers where they already were. JSON came in. Security moved closer to the data with Always Encrypted, Dynamic Data Masking, and Row-Level Security. And for the first time, we got a built-in flight recorder for query performance with Query Store.

There’s a lot here, so let’s get started.

Jeff points out DATEDIFF_BIG(), which I had not used and did not know existed. In return, I would like to point out FORMATMESSAGE(), a function that I believe more people should know about. The downside to FORMATMESSAGE() is that there is no native date translation, so you’d have to convert dates to strings. But the upside is that you get f-string style support for writing outputs in T-SQL

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.