服务热线:13616026886

技术文档 欢迎使用技术文档,我们为你提供从新手到专业开发者的所有资源,你也可以通过它日益精进

位置:首页 > 技术文档 > JAVA > 新手入门 > 基础入门 > 查看文档

为什么text字段不能存取大于4k的数据


  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”。

扫描关注微信公众号