This script converts hierarchical adjacency into nested json rows which contain the recursive "downlines" of each node.  The table-valued function treats each row in the original adjacency as the root node in a recursive common table expression. 
        2019-11-25 (first published: 2019-11-24)
 771 reads
           This script converts hierarchical adjacency into nested json rows which contain the recursive "downlines" of each node.  The table-valued function treats each row in the original adjacency as the root node in a recursive common table expression. 
        2019-11-12 (first published: 2019-11-08)
 2,058 reads
           Links and information about the FOR JSON clause in SQL Server 2016.
        2018-08-10 (first published: 2015-10-05)
 4,907 reads