for xml path('') 引发的数据不完整
2013-09-26 20:51
225 查看
When you read Extensible Markup Language (XML) data from Microsoft SQL
Server by using the SqlDataReader/SqlDataAdatper object or [b]excuteScalar() method , the XML in the first column of
[/b]
the first row is truncated at 2,033 characters. You expect all of the
contents of the XML data to be contained in a single row and column.
官方解释:
如果您使用 ExecuteReader 或 BeginExecuteReader 访问 XML 数据,SQL Server 将以多行(每行 2,033 个字符)方式返回长度大于 2,033 个字符的所有 XML 结果。 若要避免发生此行为,请使用 ExecuteXmlReader 或 BeginExecuteXmlReader 读取 FOR XML 查询。 有关更多信息,请参见位于 http://support.microsoft.com 上的 Microsoft 知识库中的文章 Q310378“PRB: XML Data Is Truncated When You Use SqlDataReader”(PRB:使用 SqlDataReader 时 XML 数据被截断)
Server by using the SqlDataReader/SqlDataAdatper object or [b]excuteScalar() method , the XML in the first column of
[/b]
the first row is truncated at 2,033 characters. You expect all of the
contents of the XML data to be contained in a single row and column.
官方解释:
如果您使用 ExecuteReader 或 BeginExecuteReader 访问 XML 数据,SQL Server 将以多行(每行 2,033 个字符)方式返回长度大于 2,033 个字符的所有 XML 结果。 若要避免发生此行为,请使用 ExecuteXmlReader 或 BeginExecuteXmlReader 读取 FOR XML 查询。 有关更多信息,请参见位于 http://support.microsoft.com 上的 Microsoft 知识库中的文章 Q310378“PRB: XML Data Is Truncated When You Use SqlDataReader”(PRB:使用 SqlDataReader 时 XML 数据被截断)
相关文章推荐
- Sql Server合并多行询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数
- 合并多行查询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数 (转)
- 合并多行查询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数
- 使用自连接、for xml path('')和stuff合并显示多行数据到一行中(转)
- Sql Server合并多行询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数
- 合并多行查询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数
- 合并多行查询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数
- Sql Server合并多行询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数
- SqlServer实现oracle10g的 wmsys.wm_concat()/使用自连接、for xml path('')和stuff合并显示多行数据到一行中
- SQL2005/2008手工注入之批量爆数据for xml path
- SQL - for xml path('') 实现多行合并到一行, 并带有分隔符
- SQL 将一列多行数据合并为一行 FOR XML PATH
- Sql Server合并多行询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数
- 合并多行查询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数
- sql FOR XML PATH('')
- SQL Server 中利用STUFF和FOR XML PATH()实现多行数据的拼接
- for xml path 按分类合并行数据
- 合并多行查询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数
- Sql Server合并多行询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数
- 合并多行查询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数