Freigeben über


ReportError (clsDatabase)

ms133274.note(de-de,SQL.90).gifHinweis:
  Dieses Feature wird in der nächsten Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature nicht zum Entwickeln neuer Anwendungen, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird, zum frühstmöglichen Zeitpunkt ein.

This event is called whenever a processing error occurs.

Applies To:clsDatabase

Syntax

ReportError(obj As Object, ByVal Action As Integer, ByVal ErrorCode As Long, ByVal Message As String, Cancel As Boolean)

Parameter

  • obj
    Refers to the object being processed or the target object of the action.
  • Action
    Refers to the processing action that has been completed.
  • ErrorCode
    A value in the ErrorCodes enumeration.
  • Message
    A user friendly message describing the error.
  • Cancel
    Allows the application to cancel an action by setting this parameter to True.

Hinweise

This event is called whenever an error occurs during processing.

For more information about using this event, see Events.