Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.6 KB

onerror-event-rds.md

File metadata and controls

45 lines (35 loc) · 1.6 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords apitype
onError Event (RDS)
onError Event (RDS)
rothja
jroth
01/19/2017
sql
ado
reference
onError event [ADO]
COM

onError Event (RDS)

The onError event is called whenever an error occurs during an operation.

Important

Beginning with Windows 8 and Windows Server 2012, RDS server components are no longer included in the Windows operating system (see Windows 8 and Windows Server 2012 Compatibility Cookbook for more detail). RDS client components will be removed in a future version of Windows. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Applications that use RDS should migrate to WCF Data Service.

Syntax

  
onError SCode, Description, Source, CancelDisplay  

Parameters

SCode
An integer that indicates the status code of the error.

Description
A String that indicates a description of the error.

Source
A String that indicates the query or command that caused the error.

CancelDisplay
A Boolean value, which if set to True, that prevents the error from being displayed in a dialog box.

Applies To

DataControl Object (RDS)

See Also

ADO Events Model Example (VC++)
ADO Event Handler Summary