Alex Jaya
asked on
Export FOR JSON clause to an actual JSON File
I'm running a SQL query and using the FOR JSON PATH clause with child arrays. The results show up fine when viewing the results to grid but I need a way to export it to an actual json file.
I've read up on BCP but I can't seem to get it working mostly because I don't know how to use it. I need to be able to use this as an automated scheduled job, preferably as a SQL job.
Does anyone have any suggestions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No, cause pretty print is for data representation not necessary, thus it is not done by FOR JSON.
When you want that, then you need to use a separate tool for that.
When you want that, then you need to use a separate tool for that.
ASKER