{. “speaker”:. “Emanuele Zanchettin”,. “session” :

Slides:



Advertisements
Similar presentations
15-Jul-15 JSON. JSON example “JSON” stands for “JavaScript Object Notation” Despite the name, JSON is a (mostly) language-independent way of specifying.
Advertisements

Building Web Applications with SQL Azure David Robinson Senior Program Manager SQL Azure
DB Audit Expert v1.1 for Oracle Copyright © SoftTree Technologies, Inc. This presentation is for DB Audit Expert for Oracle version 1.1 which.
Introduction to Python Lecture 1. CS 484 – Artificial Intelligence2 Big Picture Language Features Python is interpreted Not compiled Object-oriented language.
JSON The Fat Free Alternative to XML. Data Interchange The key idea in Ajax. An alternative to page replacement. Applications delivered as pages. How.
Best Practice for Configuring your SharePoint Environment Steve Smith.
Serialization. Serialization is the process of converting an object into an intermediate format that can be stored (e.g. in a file or transmitted across.
JSON Java Script Object Notation Copyright © 2013 Curt Hill.
AJAX. Ajax  $.get  $.post  $.getJSON  $.ajax  json and xml  Looping over data results, success and error callbacks.
Types Chapter 2. C++ An Introduction to Computing, 3rd ed. 2 Objectives Observe types provided by C++ Literals of these types Explain syntax rules for.
OVERVIEW AND PARSING JSON. What is JSON JavaScript Object Notation Used to format data Commonly used in Web as a vehicle to describe data being sent between.
JSON. JSON as an XML Alternative JSON is a light-weight alternative to XML for data- interchange JSON = JavaScript Object Notation It’s really language.
Lecture 6: More Decisions & Arrays B Burlingame 9 March 2016.
JSON C# Libraries Parsing JSON Files “Deserialize” OR Generating JSON Files “Serialize” JavaScriptSerializer.NET Class JSON.NET.
JSON (Copied from and from Prof Da Silva) Week 12 Web site:
JQuery, JSON, AJAX. AJAX: Async JavaScript & XML In traditional Web coding, to get information from a database or a file on the server –make an HTML form.
#sqlsatPordenone #sqlsat495 February 27, 2016 Elastic Database, going to the infinity * Emanuele thinkit.it –
Introduction to Mongo DB(NO SQL data Base)
Storing Data.
State of Azure SQL Database
SQL Server getting closer to
Week 2 - Wednesday CS 121.
All about JSON Scenarios and value proposition for JSON data enabled in Azure SQL Database and SQL Server Ralph Kemperdick Digital Business Architect,
PHP (Session 1) INFO 257 Supplement.
Using JMP® Visualization for A Bike-Sharing Program in NYC
Supporting Windows 8.1 Krystle Portocarrero | Training Experts Inc.
22-INTEGRATION HUB
JSON Crash Course Traversy Media.
Exporting and Importing Data
Scope, Objects, Strings, Numbers
Meet JSON In SQL Server 2016 Russ Loski Preparations:
Making Developers lives easier with SQL Server 2016
Data Virtualization Tutorial: JSON_TABLE Queries
JavaScript Object Notation
SQL Server 2016 JSON Support FOR Data Warehousing
Data Structures Mohammed Thajeel To the second year students
Overview of Hadoop MapReduce MapReduce is a soft work framework for easily writing applications which process vast amounts of.
Azure Machine Learning & ML Studio
Elastic Database, going to the infinity *
Session V HTML5 APIs - AJAX & JSON
Principles of report writing
Meet JSON In SQL Server 2016 Russ Loski Preparations:
Built in Fairfield County: Front End Developers Meetup
Meet JSON In SQL Server 2016 Russ Loski Preparations:
Intro to NoSQL Databases
JSON.
Hidden gems of SQL Server 2016
A JSON’s Journey through SQL Server
Fundamentals of Data Structures
Please thank our sponsors!
SQL Server Performance Tuning Nowadays
Radu Mariescu-Istodor
Azure Data Lake for First Time Swimmers
Web DB Programming: PHP
JSON Data Demo.
Intro to NoSQL Databases
Coding Concepts (Data- Types)
Excel Lookup Formulas Welcome! with Cindy Kredo
JSON for the Data Mortal
JavaScript onLoad arrays
Stephen W Thomas Using BizTalk Server as your Foundation to the Clouds
Integrating REST API and SQL Server JSON Functions
Department of Computer Science Cal State East Bay, Hayward, CA
Consuming Web Services with 2E Generated Objects
Michael Wall Senior DBA, Great Western Malting
JSON: JavaScript Object Notation
Keeping your SQL Code safe
Intro to NoSQL Databases
DEV2DEV Performance tips for faster SQL queries
Bringing source control to BI world!
Presentation transcript:

{. “speaker”:. “Emanuele Zanchettin”,. “session” : { “speaker”: “Emanuele Zanchettin”, “session” : “JSON before and after SQL SERVER 2016” }

Sponsors!

Agenda

Agenda JSON overview Using JSON before SQL Server 2016 Using JSON with/after SQL Server 2016 A real scenario (simplified) Conclusions would you like to play a game?

Have you never used JSON before? Too much early this morning .. a very busy day .. and now .. ?? Are you awake?  Try to raise your hand, just one Try to smile Who is using … (raise at least one hand) SQL Server? SS Management Studio? Who is … (raise at least one hand) A developer? A DBAdministrator? Other? Have you never used JSON before?

me - Emanuele Zanchettin 15+ years experience about IT Data architect and consultant about SQLServer and Azure SQL Database Lead of Software Development @ Sci-Tech Labs Daresbury (UK) Co-founder thinkIT (IT) Community Lead Official Microsoft Community Speaker at national and international conferences and user groups about SQLServer e Azure SQL Database ezanchettin@thinkit.it – http://www.thinkit.it/

JSON overview

JSON overview - History In computing, JSON, acronym of JavaScript Object Notation, is an open-standard file format to transmit data using asynchronous browser/server communication https://en.wikipedia.org/wiki/JSON Based on STD JS December 1999 Indipendent Alternative of XML

JSON overview – data types Data types supported by this format are: boolean number string array and associative array null object Not supported data types are: binary  .. Base64 

JSON overview – XML vs JSON XML <employees> <employee> <name>Tim</name> <gender>M</gender> </employee> <name>Tom</name> </employees > JSON { "employees": [ "name": "Tim", "gender": "M" }, "name": "Tom", } ]

JSON overview – JSON roles An object must be included between { and } (braces) Couple keys/values are separated by : (colon) Collections of couple keys/values are separated by , (comma) Arrays are represented by [ ] (square brakets) and values are separated by , (comma)

JSON overview – data type conversion JSON «value» types Number, decimal signed with eventual fraction and exponent E String, delimited by " and managed with \ as escape char Boolean, true or false Null Array, delimited by [] as an empty list or with elements separated by , Object, delimited by { } with eventual couple key/value separated by , Easy, isn’t!? 

JSON overview – strings Be careful in case of managing of UNICODE strings, except " and \ and control char, for example \" double quote \\ reverse bar \/ bar \b behind \f end page \r return \n new row \t tab \u<hex 4 digit> any char with hex representation

JSON before of SQL Server 2016

JSON before of SQL Server 2016 Not native support  Are there alternatives? Don’t use JSON at DB level  Maintain the JSON as not structured data into the DB  Migrate to SQL Server 2016  !?!? Parsing the JSON at DB level  .. Accepting all limits .. Enjoy, it’s possible to manage in «easy» mode the JSON using previous versions of SQL Server 2016 …

DEMO JSON2014

JSON with/after SQL Server 2016

JSON with/after SQL Server 2016 Native support  OUPUT FOR JSON PATH FOR JSON AUTO INPUT OPENJSON ISJSON JSON_VALUE JSON_QUERY

DEMO JSON2016

A real scenario (simplified) – do you like wine? Versions: { // PackageV1 "DeviceIdentifier": null, "Temperatures": null } { // PackageV2 "Temperatures": null, "Version": null { // PackageV3 "Version": null, "Temperature": 0.0, "Humidity": 0.0

DEMO WINE

Conclusions – only vantages No setup and/or installation needed Few and easy command to remember  Easy to use, to integrate and to maintain Two ways transformation JSON <-> relational model Hibrid model with data storing Total flexibility on JSON structure on data storing Indexes to have better performances

Q&A Questions? ezanchettin@thinkit.it @_thinkIT_ Here, there, around the world

Please, don’t forget to complete Thanks Thank you very much for listening Please, don’t forget to complete the feedback form 

Agenda JSON overview Using JSON with/after SQL Server 2016 Using JSON before SQL Server 2016 A real scenario (simplified) Conclusions no thanks would you like to play a game?

Have you never used JSON before? Too much early this morning .. a very busy day .. and now .. ?? Are you awake?  Try to raise your hand, just one Try to smile Who is using … (raise at least one hand) SQL Server? SS Management Studio? Who is … (raise at least one hand) A developer? A DBAdministrator? Other? Have you never used JSON before?

me - Emanuele Zanchettin 15+ years experience about IT Data architect and consultant about SQLServer and Azure SQL Database Lead of Software Development @ Sci-Tech Labs Daresbury (UK) Co-founder thinkIT (IT) Community Lead Official Microsoft Community Speaker at national and international conferences and user groups about SQLServer e Azure SQL Database ezanchettin@thinkit.it – http://www.thinkit.it/

Conclusions – only vantages No setup and/or installation needed Few and easy command to remember  Easy to use, to integrate and to maintain Two ways transformation JSON <-> relational model Hibrid model with data storing Total flexibility on JSON structure on data storing Indexes to have better performances

A real scenario – do you like wine? Versions: { // PackageV1 "DeviceIdentifier": null, "Temperatures": null } { // PackageV2 "Temperatures": null, "Version": null { // PackageV3 "Version": null, "Temperature": 0.0, "Humidity": 0.0

DEMO WINE

JSON with/after SQL Server 2016

JSON with/after SQL Server 2016 Native support  OUPUT FOR JSON PATH FOR JSON AUTO INPUT OPENJSON ISJSON JSON_VALUE JSON_QUERY

DEMO JSON2016

JSON before of SQL Server 2016

JSON before of SQL Server 2016 Not native support  Are there alternatives? Don’t use JSON at DB level  Maintain the JSON as not structured data into the DB  Migrate to SQL Server 2016  !?!? Parsing the JSON at DB level  .. Accepting all limits .. Enjoy, it’s possible to manage in «easy» mode the JSON using previous versions of SQL Server 2016 …

DEMO JSON2014

JSON overview

JSON overview - History In computing, JSON, acronym of JavaScript Object Notation, is an open-standard file format to transmit data using asynchronous browser/server communication https://en.wikipedia.org/wiki/JSON Based on STD JS December 1999 Indipendent Alternative of XML

JSON overview – data types Data types supported by this format are: boolean number string array and associative array null object Not supported data types are: binary  .. Base64 

JSON overview – XML vs JSON XML <employees> <employee> <name>Tim</name> <gender>M</gender> </employee> <name>Tom</name> </employees > JSON { "employees": [ "name": "Tim", "gender": "M" }, "name": "Tom", } ]

JSON overview – JSON roles An object must be included between { and } (braces) Couple keys/values are separated by : (colon) Collections of couple keys/values are separated by , (comma) Arrays are represented by [ ] (square brakets) and values are separated by , (comma)

JSON overview – data type conversion JSON «value» types Number, decimal signed with eventual fraction and exponent E String, delimited by " and managed with \ as escape char Boolean, true or false Null Array, delimited by [] as an empty list or with elements separated by , Object, delimited by { } with eventual couple key/value separated by , Easy, isn’t!? 

JSON overview – strings Be careful in case of managing of UNICODE strings, except " and \ and control char, for example \" double quote \\ reverse bar \/ bar \b behind \f end page \r return \n new row \t tab \u<hex 4 digit> any char with hex representation

Q&A Questions? ezanchettin@thinkit.it @_thinkIT_ Here, there, around the world

Please, don’t forget to complete Thanks Thank you very much for listening and playing the game Please, don’t forget to complete the feedback form 