Messages 2645 through 2681

Messages on this page are sorted by error number. Locate the appropriate error code in the table below.

Error Code Type Message Possible Cause
2645 Error Statements defined for OPEN in both DECLARE and FROM No additional information available.
2646 Error Cannot describe static cursors You have described a static cursor. When describing a cursor, the cursor name must be specified in a host variable
2647 Error Macros cannot be redefined A preprocessor macro has been defined twice, possibly in a header file.
2648 Error Invalid array dimension The array dimension of the variable is negative
2649 Error Invalid descriptor index You have allocated less than one variable with the ALLOCATE DESCRIPTOR statement.
2650 Error Invalid field for SET DESCRIPTOR An invalid or unknown keyword is present in a SET DESCRIPTOR statement. The keywords can only be TYPE, PRECISION, SCALE, LENGTH, INDICATOR, or DATA.
2651 Error Field used more than once in SET DESCRIPTOR statement The same keyword has been used more than once inside a single SET DESCRIPTOR statement.
2652 Error Data value must be a host variable The variable used in the SET DESCRIPTOR statement hasn't been declared as a host variable.
2660 Warning Into clause not allowed on declare cursor - ignored You have specified an INTO clause on a SELECT statement in a DECLARE CURSOR. Note that the INTO clause will be ignored.
2661 Warning Unrecognized SQL syntax You have used a SQL statement that will probably cause a syntax error when the statement is sent to the database server.
2662 Warning Unknown SQL function '%1' You have used a SQL function that is unknown to the preprocessor and will probably cause an error when the statement is sent to the database engine.
2663 Warning Wrong number of arguments to SQL function '%1' You have used a SQL function with the wrong number of parameters. This will likely cause an error when the statement is sent to the database server.
2664 Warning Static statement names will not work properly if used by 2 threads You have used a static statement name and preprocessed with the -r reentrancy switch. Static statement names cause static variables to be generated that are filled in by the database. If two threads use the same statement, contention arises over this var
2665 Warning Host variable '%1' has been redefined You have redefined the same host variable with a different host type. As far as the preprocessor is concerned, host variables are global; two host variables with different types cannot have the same name.
2666 Flag (warning or error) Disallowed language extension detected in syntax You have used a feature that is not defined by SQL/92 and preprocessed with the -ee, -ei, -ef, -we, -wi or -wf flagging switch.
2667 Flag (warning or error) Language extension detected in syntax You have used a SQL Anywhere feature that is not supported by the current flagging level (set using the -w option).
2668 Flag (warning or error) Full SQL feature You have used a full-SQL/92 feature and preprocessed with the -ee, -ei, -we or -wi flagging switch.
2669 Flag (warning or error) Transact SQL extension You have used a Sybase Transact SQL feature that is not defined by SQL/92 and preprocessed with the -ee, -ei, -ef, -we, -wi or -wf flagging switch.
2680 Error No DECLARE SECTION and no INCLUDE SQLCA statement The EXEC SQL INCLUDE SQLCA statement is missing from the source file.
2681 Error Unable to open temporary file An error occurred while attempting to open a temporary file.


Created June 15, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com