db_fini Function

This function frees resources used by the database interface or DLL.

Syntax

int db_fini( SQLCA * sqlca );

Parameters

Returns

Non-zero value for success; 0 otherwise.

Remarks

You must not make any other library calls or execute any embedded SQL statements after db_fini is called. If an error occurs during processing, the error code is set in SQLCA and the function returns 0. If there are no errors, a non-zero value is returned.

You need to call db_fini once for each SQLCA being used.

The db_fini function should not be called directly or indirectly from the DllMain function in a Windows Dynamic Link Library. The DllMain entry point function is intended to perform only simple initialization and termination tasks. Calling db_fini can create deadlocks and circular dependencies.