2

I'm using SQL Server 2008 R2.

I'm concatenating strings together using "for xml path('')".

I have set the Tools->Options->SQL Server->Results to Grid options to max.

I have set the Tools->Options->SQL Server->Results to Text options to max.

Executing the query in Grid mode and copying the one row/one colum results, I see the return value is limited to 2034 characters.

Executing the query in Text mode and copying the one row/one colum results, I see the return value is limited to 1124 characters.

How can I ensure the returned value isn't truncated?

4

1 回答 1

5

在这里找到答案:

https://stackoverflow.com/a/5658758/609058

出于某种原因,将 XML 转换为字符串会返回未截断的字符串。

不知道为什么它有效,但它确实有效。

于 2013-09-17T18:01:59.877 回答