用于 json auto 的 sql 服务器。如何获取全部结果

Ter*_*lem 6 sql-server json

当尝试这个时:

select BtId, [Name], Type, ISNULL([Description], '') as [Description], 
ISNULL(Comment, '') as Comment, ISNULL(Source, '') as Source, ISNULL(Info, '') as Info

from BytegymType
For json auto
Run Code Online (Sandbox Code Playgroud)

我收到此错误消息:

Unable to show XML. The following error happened:
An error occurred while parsing EntityName. Line 1, position 14957.
One solution is to increase the number of characters retrieved from the 
server for XML data. To change this setting, on the Tools menu, click 
Options.
Run Code Online (Sandbox Code Playgroud)

我已将 sql 结果设置为 max:

微软 SQL Server 管理工作室 14.0.17289.0

非 xml 数据我也无法超过 655535。我也尝试将结果写入文件,但仍然缺少内容。

抱歉,我不太擅长 sql-server :(

Ter*_*lem 8

我在缩小结果范围后发现了错误。它与缓冲区大小无关。for json似乎与我存储在数据库中的&符号有问题。这有点奇怪,因为它确实有/的释放字符,这句话是“肩膀和三头肌”。

看来解析器有问题。