Contents Index a_translate_log structure an_unload_db structure

ASA Programming Guide
  The Database Tools Interface
    DBTools structures

a_truncate_log structure


Function 

Holds information needed for transaction log truncation using the DBTools library.

Syntax 

typedef struct a_truncate_log {
unsigned short      version;
const char *         connectparms;
const char *         startline;
MSG_CALLBACK      errorrtn;
MSG_CALLBACK      msgrtn;
a_bit_field         quiet   : 1;
char            truncate_interrupted;
} a_truncate_log;

Parameters 
Member Description
version DBTools version number.
connectparms The parameters needed to connect to the database. They take the form of connection strings, such as the following:
"UID=DBA;PWD=SQL;DBF=c:\asa\asademo.db"
For the full range of connection string options, see Connection parameters
startline The command-line used to start the database engine. The following is an example start line:
"c:\asa\win32\dbeng9.exe"
The default start line is used if this member is NULL
errorrtn Callback routine for handling an error message
msgrtn Callback routine for handling an information message
quiet Operate without printing messages (1), or print messages (0)
truncate_interrupted Indicates that the operation was interrupted
See also 

DBTruncateLog function

For more information on callback functions, see Using callback functions.


Contents Index a_translate_log structure an_unload_db structure