[firebase-br] Res: Obter SQL error code (talvez off-topic)

Wilton Junior wiltonjunior2002 em yahoo.com.br
Qua Dez 6 08:49:37 -03 2006



Table 27-2
shows the values that the SQL-89 and SQL-92 standards define for SQLCODE.


 


SQLCODE         MESSAGE         INTERPRETATION


 


0                       SUCCESS         The
operation completed successfully.


 


1–99                SQLWARNING    Warning or information message from the
server.


 


100                NOT
FOUND        An operation was requested
for which no rows were found. This is not an error—it often just means that na end-of-file
or end-of-cursor condition was detected or simply that no matching value was
found.


 


<0              SQLERROR          Indicates the SQL statement did not
complete. The numbers fall into broken ranges between –1 and –999.


 


The mapping
of negative SQLCODEs to actual errors is not defined by the standards. Firebird’s
negative SQLCODEs are quite generalized and provide groupings that are largely
coincidental and often bemusing. For example, while it is possible to guess that
an SQLCODE of –204 means “something unknown,” the code on its own tells nothing
about what is unknown.


 
Extraido do livro The Firebird Book: A Reference for Database Developers (HELEN BORRIE)


Wilton Pereira Dias Júnior
JR Tecnologia
(62) 8418-1660
MSN: wiltonjunior em msn.com


----- Mensagem original ----
De: Anticlei Scheid <cleischeid em yahoo.com.br>
Para: Firebird Lista <lista em firebase.com.br>
Enviadas: Quarta-feira, 6 de Dezembro de 2006 6:39:56
Assunto: [firebase-br] Obter SQL error code (talvez off-topic)

Bom dia pessoal.

    Talvez seja "off-topic", mas gostaria de saber como obter no Delphi o SQL Error code que o Firebird gera quando ocorre uma exceção EDatabaseError.
    Por favor desculpem-me se esta dúvida não couber nesta lista ok?

Obrigado e abraços
______________________________________________
FireBase-BR (www.firebase.com.br) - Hospedado em www.locador.com.br
Para editar sua configuração na lista, use o endereço http://mail.firebase.com.br/mailman/listinfo/lista_firebase.com.br
Para consultar mensagens antigas: http://firebase.com.br/pesquisa







		
_______________________________________________________ 
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! 
http://br.mobile.yahoo.com/mailalertas/ 
 



Mais detalhes sobre a lista de discussão lista