Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » Database Tools Interface » DBTools structures

an_upgrade_db structure Next Page

a_validate_db structure


Holds information needed for database validation using the DBTools library.

Syntax
typedef struct a_validate_db {
    unsigned short      version;
    const char *        connectparms;
    const char *        _unused1;
    p_name              tables;
    MSG_CALLBACK        errorrtn;
    MSG_CALLBACK        msgrtn;
    MSG_CALLBACK        statusrtn;
    a_bit_field         quiet : 1;
    a_bit_field         index : 1;
    a_validate_type     type;
} a_validate_db;
Members
Member Description
version DBTools version number.
connectparms

Parameters needed to connect to the database. They take the form of connection strings, such as the following:

"UID=DBA;PWD=sql;DBF=samples-dir\demo.db"

The database server would be started by the connection string START parameter. For example:

"START=d:\sqlany10\win32\dbeng10.exe"

A full example connection string including the START parameter:

"UID=DBA;PWD=sql;DBF=samples-dir\demo.db;START=d:\sqlany10\win32\dbeng10.exe"

For a list of connection parameters, see Connection parameters.

tables Pointer to a linked list of table names.
errorrtn Callback routine for handling an error message.
msgrtn Callback routine for handling an information message.
statusrtn Callback routine for handling a status message.
quiet Operate without printing messages (1), or print messages (0).
index Validate indexes.
type See a_validate_type enumeration.
See also