tediousjs / tedious

Node TDS module for connecting to SQL Server databases.

Home Page:http://tediousjs.github.io/tedious/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FOR JSON PATH truncated results

morningtundra opened this issue · comments

In SQL Server 2016, it seems the results are being truncated.

What is the recommended way to handle this in tediousjs?

Hey @morningtundra,

is this truncation happening in these other libraries / clients because of the value of the TEXTSIZE setting? TEXTSIZE is used to configure the length of text types (including nvarchar(max) that is used for JSON data).

In tedious, the TEXTSIZE is set to 2147483647 by default - so nvarchar(max) values can be up to 2GB in size. This should be large enough that truncation should not happen. I haven't tested this out - please let us know if you run into any truncation issues. 🙇‍♂️