Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API Reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SAConnection class

 

InfoMessage event

Occurs when the SQL Anywhere database server returns a warning or informational message.

Syntax
Visual Basic

Public Event InfoMessage As SAInfoMessageEventHandler
C#

public event SAInfoMessageEventHandler InfoMessage ;
Remarks

The event handler receives an argument of type SaInfoMessageEventArgs containing data related to this event. The following SAaInfoMessageEventArgs properties provide information specific to this event: NativeError, Errors, Message, MessageType, and Source.

For more information, see the .NET Framework documentation for OleDbConnection.InfoMessage Event.

Event data
  • MessageType   Returns the type of the message. This can be one of: Action, Info, Status, or Warning.

  • Errors   Returns the collection of messages sent from the data source.

  • Message   Returns the full text of the error sent from the data source.

  • Source   Returns the name of the SQL Anywhere .NET Data Provider.

  • NativeError   Returns the SQL code returned by the database.

See also