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

SelectBlob is truncated when the embedded SQL statement exceeds 512 characters – PB Docs 2022 – PowerBuilder Library

SelectBlob is truncated when the embedded SQL statement exceeds 512 characters – PB Docs 2022

SelectBlob is truncated when the embedded SQL statement exceeds
512 characters

Symptom

When a SelectBlob embedded SQL statement exceeds 512 characters,
the SQL statement itself will be truncated, causing the SQL statement to
fail. For example:

SQLCA.SQLErrText displays this error when the SQL is run:

An expression of non-boolean type specified in a context where
a condition is expected, near "a".

Environment

PowerBuilder 2017 or later

SQL Server

Cause

This is a PowerBuilder known issue. When
PowerBuilder is using the “SNC SQL Native Client (OLE DB)” and the
“MSOLEDBSQL SQL Server” driver, if the SelectBlob embedded SQL statement
length exceeds 512 characters, it will be truncated.

Solution

You can work around the issue by using any of the following
ways:

Method #1: Use OLE DB to connect database, for
example:

Method #2: Use Dynamic SQL to execute SQL, for
example:


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