Show TOC

Background documentationInterface ITmxDBConnection

 

Method name: Connect
  • Short Description

    Connects to a data source.

  • Functionality

    Uses MSADO to connect to the database that requires the ODBC data source name, user name, and password. The default user name is dba and the default password is sql.

  • Preconditions

    You must register TmxAPI.DLL.

  • Result

    HRESULT

Parameter Name

Parameter Type

Data Type

DSN

IN

BSTR

UserID

IN

BSTR

Pswd

IN

BSTR

Method name: Disconnect
  • Short Description

    Disconnects from the data source.

  • Functionality

    Uses MSADO to call to disconnect from the database.

  • Preconditions

    You must register TmxAPI.DLL.

  • Result

    HRESULT

Method name: get_LastError
  • Short Description

    Retrieves the last error text.

  • Functionality

    If a call to the database results in an error, use this method to retrieve the last error text.

  • Preconditions

    You must register TmxAPI.DLL.

  • Result

    VARIANT

Method name: get_LastErrorNumber
  • Short Description

    Retrieves the last error number.

  • Functionality

    If a call to the database results in an error, use this method to retrieve the last error number.

  • Preconditions

    You must register TmxAPI.DLL.

  • Result

    VARIANT