| title | ADO Error Codes | Microsoft Docs | |
|---|---|---|
| ms.prod | sql | |
| ms.prod_service | connectivity | |
| ms.technology | connectivity | |
| ms.custom | ||
| ms.date | 02/15/2017 | |
| ms.reviewer | ||
| ms.topic | conceptual | |
| helpviewer_keywords |
|
|
| ms.assetid | 3aee61c7-a9b7-4596-b78e-5828a00d0281 | |
| author | MightyPen | |
| ms.author | genemi |
In addition to the provider errors returned in the Error objects of the Errors collection, ADO itself can return errors to the exception-handling mechanism of your run-time environment. Use the error trapping mechanism your programming language, such as the On Error statement in Microsoft® Visual Basic, or the try-catch block in Microsoft Visual C++®, to capture ADO errors.
For the list of ADO error codes, see ErrorValueEnum.