open_commit

Establishes a connection with the commit service.

Syntax

PDBPROCESS open_commit (
PLOGINREC
login,
LPCSTR
servername );

where

login
Is a LOGINREC structure containing information about the user initiating the session, such as login name, password, or options desired. The LOGINREC must be obtained from a prior call to the DB-Library function dblogin. The caller may want to initialize fields in the LOGINREC. For more details, see dblogin in DB-Library Functions.
servername
Is the name of the commit service, for example, my_server.

Returns

A pointer to a DBPROCESS structure used in subsequent commit service calls or other DB-Library calls, or NULL if the open failed.

Remarks

This function calls dbopen to establish a connection with the commit service. A call to open_commit must precede any calls to other commit service functions, such as start_xact, commit_xact, abort_xact, remove_xact, and scan_xact. A session with the commit service is closed by calling close_commit.

See Also

abort_xact, close_commit, commit_xact, dblogin, dbopen,, remove_xact, scan_xact, start_xact