Program.SQL_CommunicationsArea Class

The Program.SQL_CommunicationsArea (nested) class defines an object that represents the SQLCA to trap and report run-time errors for a SQL statement.

For a list of all members of this type, see Program.SQL_CommunicationsArea Class Members.

Inheritance Hierarchy

ASNA.Monarch
    ASNA.Monarch.Program
        ASNA.Monarch.Program.SQL_CommunicationsArea

Syntax

        BegClass Program.SQL_CommunicationsArea Access(public) Inherits ASNA.Monarch.Program
      

Thread Safety

Any public static (Shared) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Remarks

The instance of this object will have a value of *nothing before executing any SQL command. After execution of any SQL command, this object can be accessed to determine the success or failure of the SQL statement. The most common use is to test SQLCOD to find if the operation was successful or not. SQLSTT contains an additional return code for more detail; while SQL_Exception contains a reference to an instance of a System.Exception with complete detail information on an exception. As part of the debugging process, SqlCommandText is provided to contain the actual command statement.

Requirements

Namespace: ASNA.Monarch
Assembly: ASNA.VisualRPG.Runtime.DLL
Platforms: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows 7, Windows 8 Pro, Windows 10 Pro