Statement.setMaxFieldSize(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the maximum column size limit.
public:
virtual void setMaxFieldSize(int _max);
public virtual void setMaxFieldSize (int _max);
abstract member setMaxFieldSize : int -> unit
override this.setMaxFieldSize : int -> unit
Public Overridable Sub setMaxFieldSize (_max As Integer)
Parameters
- _max
- Int32
The new max column size limit; 0 means unlimited.
Remarks
The maxFieldSize limit (in bytes) is set to limit the size of data that can be returned for any column value; it only applies to binary, varbinary, longvarbinary, char, varchar, and longvarchar fields. If the limit is exceeded, the excess data is silently discarded. For maximum portability, use values greater than 256.