Book Image

Introducing Microsoft SQL Server 2019

By : Kellyn Gorman, Allan Hirt, Dave Noderer, Mitchell Pearson, James Rowland-Jones, Dustin Ryan, Arun Sirpal, Buck Woody
Book Image

Introducing Microsoft SQL Server 2019

By: Kellyn Gorman, Allan Hirt, Dave Noderer, Mitchell Pearson, James Rowland-Jones, Dustin Ryan, Arun Sirpal, Buck Woody

Overview of this book

Microsoft SQL Server comes equipped with industry-leading features and the best online transaction processing capabilities. If you are looking to work with data processing and management, getting up to speed with Microsoft Server 2019 is key. Introducing SQL Server 2019 takes you through the latest features in SQL Server 2019 and their importance. You will learn to unlock faster querying speeds and understand how to leverage the new and improved security features to build robust data management solutions. Further chapters will assist you with integrating, managing, and analyzing all data, including relational, NoSQL, and unstructured big data using SQL Server 2019. Dedicated sections in the book will also demonstrate how you can use SQL Server 2019 to leverage data processing platforms, such as Apache Hadoop and Spark, and containerization technologies like Docker and Kubernetes to control your data and efficiently monitor it. By the end of this book, you'll be well versed with all the features of Microsoft SQL Server 2019 and understand how to use them confidently to build robust data management solutions.
Table of Contents (15 chapters)

JSON

JSON support was first added to SQL Server 2016. Two functions support JSON, OPENJSON for parsing incoming data and FOR JSON for outputting JSON formatted data.

Why use JSON?

JavaScript Object Notation (JSON), is a text representation that's used to store and share data. JSON is standard in web applications of all kinds. It is the native format of JavaScript objects and is purely text. Using native JSON within SQL Server can make interfaces easier to use and make the handling of NoSQL, changing schemas, and RESTful data from the web much easier.

For example, an order from an e-commerce site or an Internet of Things (IoT) device might arrive on the server as a JSON-formatted string. You can write this "blob" of data into a database field and delay parsing it until later.

Another benefit for an order system would be to preserve the original order as is, as compared to a relational form where related data might change over time.

JSON consists of simple...