能否请你让我知道我该如何解决这个问题,同时插入XML数据到SQL Server 2008字符串或二进制数据将被截断。 r n该语句已被终止。而XML插入
ex = {"String or binary data would be truncated.\r\nThe statement has been terminated."}
我已经换了'
,""
为空字符串
感谢Advance
能否请你让我知道我该如何解决这个问题,同时插入XML数据到SQL Server 2008字符串或二进制数据将被截断。 r n该语句已被终止。而XML插入
ex = {"String or binary data would be truncated.\r\nThe statement has been terminated."}
我已经换了'
,""
为空字符串
感谢Advance
请检查列的日期类型。确保它有足够的空间。
如果您使用子查询将子查询和主查询之间的=
更改为in
。
这可能是因为主查询的每个记录都有多个字段。
检查数据库的列大小和数据长度。 当你存储长度大于定义大小的数据时,你会得到这个错误。
Ex. string Data = "saving this data causes error.";
int datalength = Data.Length; // will be 30 characters , greater than defined size
Customer.Name = Data;
//you will get error for this line if you have Name (varchar 25, null) in db .