• ducon (4/12/2016)


    True, while the string test here is interesting, it's real JSON data that will make it (or not) relevant. I'm thinking integration services, message broker etc. that could make a good use for this to parse JSON data efficiently and structure it into a set of relational tables as needed.

    Keep in mind that the purpose of this article is about splitting strings, not about working with JSON data. OPENJSON was examined since it can split strings, and it's built-in.

    Wayne
    Microsoft Certified Master: SQL Server 2008
    Author - SQL Server T-SQL Recipes


    If you can't explain to another person how the code that you're copying from the internet works, then DON'T USE IT on a production system! After all, you will be the one supporting it!
    Links:
    For better assistance in answering your questions
    Performance Problems
    Common date/time routines
    Understanding and Using APPLY Part 1 & Part 2