Codes d'état SQL

Dans de nombreux cas (par exemple lors d'une exécution sous ODBC 2.0), nous pouvons récupérer diverses informations gràce aux codes d'états SQL.

Le code d'état SQL est composé de cinq caractères, que nous pouvons diviser en deux parties de la manière suivante :

  • La classe qui est représentée par les deux premiers caractères.
    Exemples :
    • Classe 00 : Instruction correctement exécutée sans condition
    • Classe 01 : Instruction correctement exécutée avec avertissement
    • Classe 02 : L'instruction n’a traité aucune donnée
    • Classe 03 : L'instruction a échoué à cause d’une erreur
  • La sous classe qui est représentée par les trois derniers caractères.
×

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 06/07/2005, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/sql-states.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.