Holds information needed for database validation using the DBTools library.
typedef struct a_validate_db {
unsigned short version;
const char * connectparms;
const char * startline;
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;
| 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=c:\asa\asademo.db"The database server would be started by the connection string START parameter. The following is an example. "START=d:\asa90\win32\dbeng9.exe"A full example connection string including the START parameter: "userid=dba;password=sql;dbf=d:\asa90\asademo.db;start=d:\asa90\win32\dbeng9.exe"For the full range of connection string options, see Connection parameters |
| startline | Obsolete: The startline field is no longer used. The database server would be started by the connection string START parameter. Refer to connectparams for details. |
| 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 |
For more information on callback functions, see Using callback functions.
SQL Anywhere Studio 9.0.2
Copyright © 1989–2004 Sybase, Inc. Portions copyright © 2001–2004 iAnywhere Solutions, Inc. All rights reserved.