Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

row to json in sql server

SELECT * 
FROM MyTable  
FOR JSON PATH, WITHOUT_ARRAY_WRAPPER
Comment

PREVIOUS NEXT
Code Example
Sql :: drop a view in sqlite 
Sql :: sql right join with where clause 
Sql :: PostgreSQL types and C# types 
Sql :: mysql login to a specific database terminal 
Sql :: how to combine 2 tables in mysql 
Sql :: python uuid sqlalchemy 
Sql :: how to get date in sql 
Sql :: sql select rows with different values in one column 
Sql :: sql server last 2 days 
Sql :: how to set a column as unique in sql server 
Sql :: show sql server database 
Sql :: mssql datetime to date 
Sql :: alternative for LIMIT sql 
Sql :: How do I insert a blob in SQL? 
Sql :: importing excel data into sql server 
Sql :: null value in column violates not-null constraint 
Sql :: mysql if 
Sql :: nosql vs sql 
Sql :: sql get duplicates by composite 
Sql :: sql find second highest salary employee 
Sql :: using minus query in SQL 
Sql :: laravel eloquent get generated sql 
Sql :: rollback in sql 
Sql :: count occurrences sql 
Sql :: how to get previous year from sysdate in oracle 
Sql :: oracle last modification in table 
Sql :: ignore case in string sql 
Sql :: functions with parameters SQL 
Sql :: mysql changer nom table 
Sql :: soql user profile 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =