INVCURNAM

The specified cursor name is invalid.

Resolution:

See the ODBC documentation for the maximum allowed length.