StartODBCTransaction (open)

Start a new ODBC transaction

Syntax

LOADLIB "wh::dbase/odbc.whlib";

OBJECT FUNCTION StartODBCTransaction(RECORD transinfo)

Parameters

RECORD transinfo

Data about how the transaction must be opened

codepage

Codepage to use to translate all odbc driver output (for use with non-unicode complient drivers), allowed for both driver and dsn

connection_string

Connection string to send to the ODBC driver (mandatory for driver-connects)

dsn

ODBC driver name (mandatory for dsn-connects)

password

Password (mandatory for dsn-connects)

type

String value that specifies how the transaction should be opened (allowed values: "DRIVER": connect by driver string, "DSN": connect using a DSN)

username

User name (mandatory for dsn-connects)

Return value

OBJECT

The new transaction, throws if opening the transaction failed