SQL - SQLCODE's - Códigos negativos -496


Volta a página anterior

Volta ao Menu Principal


Desenvolvido por DORNELLES Carlos Alberto - Analista de Sistemas - Brasília DF. - cad_cobol@hotmail.com

SQLCode -496

   
 
  • Causa
    • THE SQL STATEMENT CANNOT BE EXECUTED BECAUSE IT REFERENCES A RESULT SET THAT WAS NOT CREATED BY THE CURRENT SERVER.

      The SQL statement cannot be executed because the current server is different from the server that called a stored procedure.
      The SQL statement can be any of the following:
      • ALLOCATE CURSOR
      • DESCRIBE CURSOR
      • FETCH (using an allocated cursor)
      • CLOSE (using an allocated cursor)
  • Ação do sistema
    • The statement cannot be executed.
  • Resposta ao Desenvolvedor
    • Connect to the server that called the stored procedure which created the result set before running the SQL statement that failed.

      SQLSTATE: 51033

© Copyright IBM Corp.