Problem: InterBase has an attachment parameter to tell the server not to do any garbage collection for this connection. This parameter is set using the database parameter block (DPB). This article demonstrates how to connect using this parameter. Solution: The information in this article applies to: * InterBase v5.x The following example demonstrates setting up a DPB with the no garbage collection parameter and connecting to a database. ----------------------- begin example here ----------------------------------- #include "ibase.h" main() { isc_db_handle db; ISC_STATUS isc_status[20]; char dbName[32]; char noGC_dpb[] = {isc_dpb_version1, isc_dpb_no_garbage_collect, 0}; // init db = 0L; strcpy(dbName, "garbage.gdb"); // attach isc_attach_database(isc_status, 0, dbName, &db, sizeof(noGC_dpb), noGC_dpb); if(isc_status[0] == 1 && isc_status[1]) { isc_print_status(isc_status); exit(1); } }
Last Modified: 28-SEP-00