Q
Why can
t I access more than
K of data in a TEXT field in SQL Server?
為什麼TEXT字段不能存取大於
K的數據?
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
the size is reset to the default (
K)
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語句返回的文本大小
如果指定大小為
則設為默認值(
K)
設置TEXTSIZE參數影響全局變量@@TEXTSIZE
DB
Library變量DBTEXTLIMIT也限制SELECT語句返回的文本大小
如果DBTEXTLIMIT比TEXTSIZE小
則按DBTEXTLIMIT的設置返回數據
更多的內容請看
Microsoft SQL Server Programming DB
Library for C
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26877.html