Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

DBTextLimit – PB Docs 126 – PowerBuilder Library

DBTextLimit – PB Docs 126

DBTextLimit database parameter

Description

Specifies the maximum length of a text field that is returned
when you include the text field in a SQL SELECT statement.

You can set the DBTextLimit 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.

Controls

  • ASE, SYC, and SYJ SAP
    Adaptive Server Enterprise

  • DIR Sybase DirectConnect

  • SNC SQL Native Client for Microsoft SQL Server

Syntax

Parameter

Description

value

The maximum length in bytes of a text
field that is returned when you include the text field in a SQL SELECT statement.
The range of valid values is from 0 bytes to 2 GB.

When you set DBTextLimit to 0, the server returns the maximum length
text field.

Default

The default value for DBTextLimit is the default specified
for the DBTEXTLIMIT DB-Library or CS_TEXTLIMIT CT-Library
connection property.

Usage

The text field length that DB-Library or CT-Library returns
is the lesser of the DBTextLimit value and the setting for the global
variable TEXTSIZE.

If the setting for TEXTSIZE is less than the value you specify
for DBTextLimit, DB-Library or CT-Library returns the TEXTSIZE value.

Examples

To have DB-Library or CT-Library return a text field
that is up to 32,000 bytes long when you include the text field
in a SQL SELECT statement:

  • Database profile

    Type 32000 in the Text
    Limit in SQL box (when using the
    ASE, or SYC, or SYJ interface), or Maximum Length of Long VarChar box
    (when using the DirectConnect interface) on the Syntax page in the Database
    Profile Setup dialog box.

  • Application

    Type the following in code:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x