Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

row to value to json in sql server

SELECT BusinessEntityID As Id,  
       FirstName, LastName,  
       Title As 'Info.Title',  
       MiddleName As 'Info.MiddleName'  
   FROM Person  
   FOR JSON PATH, ROOT('info'),INCLUDE_NULL_VALUES
 
PREVIOUS NEXT
Tagged: #row #json #sql #server
ADD COMMENT
Topic
Name
2+6 =