Presentation is loading. Please wait.

Presentation is loading. Please wait.

JSON and the Astronauts JSON Support in SQL Server 2016

Similar presentations


Presentation on theme: "JSON and the Astronauts JSON Support in SQL Server 2016"— Presentation transcript:

1 JSON and the Astronauts JSON Support in SQL Server 2016
Peter Kral JSON and the Astronauts JSON Support in SQL Server 2016

2 Peter Kral

3 Peter Kral

4 Use this discount code and save $150 LC15SSJ7

5 Local PASS User Groups San Diego Los Angeles Orange County
1st & 3rd Thursday of each month meetup.com/sdsqlug meetup.com/sdsqlbig Los Angeles Orange County 3rd Thursday of each odd month 2nd Thursday of each month sql.la bigpass.pass.org Los Angeles - Korean Malibu Every Other Tuesday 3rd Wednesday of each month sqlangeles.pass.org sqlmalibu.pass.org

6 Please support our sponsors

7 Intended Audience Familiar with SQL Server and T-SQL
Unfamiliar with JSON You Like Astronauts

8 Agenda JSON definition JSON data structures
SQL Server 2016 JSON function Demo

9 What’s JSON? JavaScript Object Notation Data-interchange language
Text format Easy to read and write Similar purpose as XML Source: “Introducing JSON" From <

10 Why JSON in SQL Server 2016? THE most-requested feature on the Microsoft SQL Server connect site SQL Server Blog As the most-requested feature on the Microsoft SQL Server connect site, with more than 1,000 votes, support for JSON text processing has been added to SQL Server 2016. Still Active as of 03/20/2017 with 1133 Up votes Source: “Microsoft Connect" From <

11 JSON Data Structures Objects (Name : Value pairs)
{"NameOfObject" : "ValueOfObject"} Arrays (Collections of Values) ["ArrayValue0","ArrayValue1","ArrayValue2"]

12 Validating JSON in SQL Server 2016

13 ISJSON Validation Results
Line Test String ISJSON Result Reason 1 4 Value, but no Name, no braces 2 "Simply a string" No braces. Is it a value? A name? 3 ["an","array","of","values"] A valid JSON array expression {"four" : } A valid JSON object expression 5 {"num" : 1, "list" : ["an","array","of","values"]} 6 {'single-quoted ': 3} Remember! Use double quotes!

14 JSON T-SQL Functions New for SQL Server 2016 OPENJSON ISJSON
JSON_VALUE JSON_MODIFY JSON_QUERY FOR JSON

15 Ellen Ochoa The first Hispanic woman in the world to go to space (1993) Ochoa became The first Hispanic woman in the world to go to space when she served on a nine-day mission aboard the shuttle Discovery in 1993. The astronauts were studying the Earth's ozone layer. A veteran of four space flights, Ochoa has logged nearly 1,000 hours in space. She was a mission specialist on STS-56 (1993), was payload commander on STS-66, and was mission specialist and flight engineer on STS-96 and STS-110 in 2002. Ochoa was in Mission Control during the Space Shuttle Columbia disaster and was one of the first personnel informed of television coverage showing Columbia's disintegration considers La Mesa, California her hometown. Ochoa graduated from Grossmont High School in El Cajon in 1975. BS in physics from San Diego State University and graduated Phi Beta Kappa in 1980 earning a master of science degree and a doctorate in electrical engineering from Stanford University in 1981 and 1985 She is married to Coe Fulmer Miles, with whom she has two children. Ochoa is a classical flutist and played with the Stanford Symphony Orchestra, receiving the Student Soloist Award current Director of the Johnson Space Center. Source: “Wikipedia" From < Image courtesy of NASA

16 Leland Melvin Official NASA photo (in 2015) with his two rescue dogs, Jake and Scout. Born February 15, 1964 in Lynchburg, Virginia. BS in chemistry from the University of Richmond, Virginia in 1986; and a Master of Science Degree in Materials Science Engineering from the University of Virginia in 1991. Chosen by the Detroit Lions in the 11th round of the 1986 NFL college draft.  Also participated in the Toronto Argonauts and Dallas Cowboys football training camps. NASA Outstanding Performance Awards (8), NASA Superior Accomplishment Award (2), Key to the City of Lynchburg, Virginia. the host of Child Genius (season 1 and 2) Source: "Astronaut Includes His Dogs in Official NASA Portrait" From < Image courtesy of NASA

17 Kate Rubins Kate Rubins wears a space suit decorated by patients at the MD Anderson Cancer Center in the International Space Station. Kathleen "Kate" Rubins She became the 60th woman to fly in space when she went to the ISS last July. She graduated from UC San Diego and earned her Ph.D. in cancer biology from Stanford University. In August 2016, she became the first person to sequence DNA in space Aboard the International Space Station, astronaut Kate Rubins wears a painted suit of 'COURAGE.‘ (HOPE, COURAGE, and UNITY are the three) created by cancer patients with acrylic paint on a NASA-grade flight suit. “During the creation of COURAGE, NASA astronauts, including Kate Rubins and Nicole Stott, visited the hospital to work on the suit with patients and families,” explains Cion. “Retired Astronaut Nicole Stott was the first person to ever make a painting in space, and Kate Rubins, currently on board the International Space Station, wore the hand-painted flight suit in a live video conversation with MD Anderson pediatric patients who were able to talk to her from Mission Control.” Source: "NASA Astronaut Wears Space Suit Hand-Painted by Cancer Patients" From < Image courtesy of NASA

18 Mark and Scott Kelly Participants in the NASA Human Research Program (HRP) Mark Edward Kelly (born February 21, 1964) is a retired American astronaut, engineer and U.S. Navy Captain. He is the husband of former Congresswoman Gabrielle Giffords (Giffords was a victim of an assassination attempt near Tucson on January 8, 2011), and is an author, political activist, and aerospace executive and consultant. Scott Kelly’s year in space commenced 27 March 2015 with the start of Expedition 43, continued through the entirety of Expeditions 44, and 45, both of which Kelly commanded. He passed command to Timothy Kopra[8] on 29 February 2016, when the ISS year long mission ended. He returned to Earth aboard Soyuz TMA-18M on 1 March 2016. In October 2015, he set the record for the total accumulated number of days spent in space by an American astronaut, 382. For the ISS year long mission, Kelly spent 340 consecutive days in space. Scott Kelly announced his retirement for April 2016 During and after Scott's year-long mission, the brothers were studied to find physical differences caused by living in space versus a baseline on Earth. Various experiments include Genome Sequencing, Epigenomics, Cognitive Performance, Microbiome in the GI Tract Source: "How Stressful Will a Trip to Mars Be on the Human Body? We Now Have a Peek Into What the NASA Twins Study Will Reveal" From < Image courtesy of NASA

19 Agenda JSON definition JSON data structures
SQL Server 2016 JSON function Demo

20 Recommended Reading Introducing JSON
SQL Server Blog - JSON in SQL Server 2016 MSDN - JSON Data (SQL Server)

21 Thank You Peter Kral Sr. Database Engineer, FTD
Certified SQL Server MCSA 2012/2014/2016 and Data Platform MCSE, Peter was recently the winner of the Speaker Idol Award at the PASS Summit Employed at e-commerce company FTD, he develops database solutions using T-SQL, SSIS and PowerShell. Peter is an active member in the PASS SQL Server User Group in San Diego, and has spoken at many SQL Saturdays and SoCal Code Camps. He will present at PASS Summit for the first time in 2017. /peterkral @pkral peter.kral 21 |


Download ppt "JSON and the Astronauts JSON Support in SQL Server 2016"

Similar presentations


Ads by Google