q. why can't i access more than 4k of data in a text field in sql server?
为什么text字段不能存取大于4k的数据?
a. probably because you haven't set the textsize parameter. set textsize <n>
specifies the size, in bytes, of text data to be returned with a select statement. if you specify a textsize of 0, the size is reset to the default (4k). setting textsize affects the global variable @@textsize.
the db-library variable dbtextlimit also limits the size of text data returned with a select statement. if dbtextlimit is set to a smaller size than textsize, only the amount specified by dbtextlimit is returned. for more information, see microsoft sql server programming db-library for c.
也许你没有设置textsize参数
set textsize <n>
用字节数指定select语句返回的文本大小,如果指定大小为0,则设为默认值(4k),设置textsize参数影响全局变量@@textsize
db-library变量dbtextlimit也限制select语句返回的文本大小,如果dbtextlimit比textsize小,则按dbtextlimit的设置返回数据,更多的内容请看“microsoft sql server programming db-library for c”。
闽公网安备 35060202000074号