I want to get 1000 rows from a table, but the result should be in in JSON format and then I need to export that file. But I am getting data in clipped/truncated
format.
Command I used:
SELECT TOP (1000) [ID]
,[Request]
,[Response]
FROM [AuditLogs] for JSON AUTO
Options I tried:
- I changed the default query result to exported to .rpt file. But when I open the rpt file in notepad++ the result are not completely exported.
- I changed the default behavior to give result in .txt format, but again the result is truncated.
Question: All I want is the JSON result to be exported from SSMS. Please guide me.
P.S: The response
column data might be long strings.