PBMaxTextSize

Description

Specifies the maximum length of text or large value datatypes returned when you include them in a DataWindow.

You can set the PBMaxTextSize parameter if you want to include a long text string in a DataWindow object without treating the text as a binary large object (blob) datatype.

Applies to

Syntax

PBMaxTextSize='value'

Parameter

Description

value

The maximum length in bytes of text or large value datatypes returned when you include them in a DataWindow. The DataWindow can be created by a procedure. The range of valid values is from 10,000 bytes to 1,000,000 bytes.

Default

PBMaxTextSize=32767

Usage

The SQL Native Client OLE DB Provider for SQL Server automatically sets the SQL Server TEXTSIZE property to 2147483647 when connecting. The size of data fetched depends on the PBMaxTextSize parameter. If a result set includes a large value type, the blocking factor will be set to 1.

Examples

Example 1

To have SQLServer return text or large datatypes that are up to 48,000 bytes long when you include them in a SQL SELECT statement: