MSSQL XML 查询是否有长度限制?CREATE PROCEDURE dbo.XML_Test
AS
SET NOCOUNT ON
SELECT *
FROM [Orders]
FOR XML AUTO
GO
System.Data.SqlClient.SqlConnection Connection = new SqlConnection();
Connection.ConnectionString = "Password=123456;Persist Security Info=True;User ID=sa;Initial Catalog=Northwind;Data Source=(local)";
Connection.Open();
System.Data.SqlClient.SqlCommand Command = new SqlCommand();
Command.CommandText = "USP_XML_Test";
Command.CommandType = CommandType.StoredProcedure;
Command.Connection = Connection;
string test = Command.ExecuteScalar().ToString(); Response.Write("<Topics>");
Response.Write(test);
Response.Write("</Topics>");
只能返回 2000 多个字符 后面的就被自动截掉了...
AS
SET NOCOUNT ON
SELECT *
FROM [Orders]
FOR XML AUTO
GO
System.Data.SqlClient.SqlConnection Connection = new SqlConnection();
Connection.ConnectionString = "Password=123456;Persist Security Info=True;User ID=sa;Initial Catalog=Northwind;Data Source=(local)";
Connection.Open();
System.Data.SqlClient.SqlCommand Command = new SqlCommand();
Command.CommandText = "USP_XML_Test";
Command.CommandType = CommandType.StoredProcedure;
Command.Connection = Connection;
string test = Command.ExecuteScalar().ToString(); Response.Write("<Topics>");
Response.Write(test);
Response.Write("</Topics>");
只能返回 2000 多个字符 后面的就被自动截掉了...
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货