17.00 - -840 More data returned than expected - Teradata Tools and Utilities

Teradata Preprocessor2 (SPP Prefix) Messages

prodname
Preprocessor2 for Embedded SQL
Teradata Tools and Utilities
vrm_release
17.00
created_date
June 2020
category
Programming Reference
featnum
B035-1096-PP2

-840 More data returned than expected

Possible Cause

Data has been returned for a request but no output host variables are provided to receive the values, or data has been returned for an EXECUTE or EXECUTE IMMEDIATE request.

Possible Solution

Data may not be returned for an EXECUTE or EXECUTE IMMEDIATE request. If the dynamic statement is expected to return data, use a dynamic cursor. For all other requests, define host variables to receive the data.