Statement.getMaxFieldSize Method

Definition

Returns the current maximum column size limit, if any.

public:
 virtual int getMaxFieldSize();
public virtual int getMaxFieldSize ();
abstract member getMaxFieldSize : unit -> int
override this.getMaxFieldSize : unit -> int
Public Overridable Function getMaxFieldSize () As Integer

Returns

The current maximum column size limit; 0 means unlimited.

Remarks

The maxFieldSize limit (in bytes) is the maximum amount of data returned for any column value; it only applies to binary, varbinary, longvarbinary, char, varchar, and longvarchar columns. If the limit is exceeded, the excess data is silently discarded.

Applies to