Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 194 Bytes

return-results-in-json.md

File metadata and controls

14 lines (12 loc) · 194 Bytes

Return results in json

The following works for MS SQL Server:

SELECT *
FROM Table 
where id = 1
FOR JSON AUTO, Without_Array_Wrapper;

Result:

{"id":1,"name":"test"}