Micah
4Penny.net
Points: 7359

11/11/2022 10:16:28 AM

SQL JSON/XML fields truncate to 2033 characters

I wrote the stored procedure below for a customer recently, and when I called it from .NET it brought back a truncated result. More, when I looked into it, it was actually splitting the result onto several lines, with a max of 2033 characters on each line. 

The solution is below.

4Penny.net
Version: All
Section: Visual Studio Tools for Dynamics GP,SQL Scripts
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3