Previous Page TOC Index Next Page



TERMINATING TRANSACTIONS AND CONNECTIONS


The ODBC interface provides functions that terminate statements, transactions, and connections, and free statement (hstmt), connection (hdbc), and environment (henv) handles.

Terminating Statement Processing

To free resources associated with a statement handle, an application calls SQLFreeStmt. The SQLFreeStmt function has four options:

To cancel a statement that is executing asynchronously, an application:

Terminating Transactions

An application calls SQLTransact to commit or roll back the current transaction.

Terminating Connections

To terminate a connection to a driver and data source, an application performs the following steps:

Previous Page TOC Index Next Page

Copyright © 1992-1997 Solid Information Technology Ltd All rights reserved.