Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 1.11 KB

ado-error-codes.md

File metadata and controls

24 lines (22 loc) · 1.11 KB
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
errors [ADO], error codes
ms.assetid 3aee61c7-a9b7-4596-b78e-5828a00d0281
author MightyPen
ms.author genemi
manager craigg

Capture ADO Error Codes

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.

See Also

Error Object Errors Collection (ADO)