a_db_info structure
Holds the information needed to return DBInfo information using the DBTools library.
Syntax
typedef struct
a_db_info
bit_map_pages a_sql_uint32
Number of bitmap pages in the database.
charcollationspecbuffer char *
Pointer to the char collation string buffer.
charcollationspecbufsize unsigned short
Size of charcollationspecbuffer (at least 256+1).
charencodingbuffer char *
Pointer to the char encoding string buffer.
charencodingbufsize unsigned short
Size of charencodingbuffer (at least 50+1).
checksum a_bit_field
If set TRUE, global checksums are enabled (a checksum on every database page).
connectparms const char *
Parameters needed to connect to the database.
dbbufsize unsigned short
Size of dbnamebuffer (for example, _MAX_PATH).
dbnamebuffer char *
Pointer to the database file name buffer.
encrypted_tables a_bit_field
If set TRUE, encrypted tables are supported.
errorrtn MSG_CALLBACK
Address of an error message callback routine or NULL.
file_size a_sql_uint32
Size of database file (in pages).
free_pages a_sql_uint32
Number of free pages.
logbufsize unsigned short
Size of lognamebuffer (for example, _MAX_PATH).
lognamebuffer char *
Pointer to the transaction log file name buffer.
mirrorbufsize unsigned short
Size of mirrornamebuffer (for example, _MAX_PATH).
mirrornamebuffer char *
Pointer to the mirror file name buffer.
msgrtn MSG_CALLBACK
Address of an information message callback routine or NULL.
ncharcollationspecbuffer char *
Pointer to the nchar collation string buffer.
ncharcollationspecbufsize unsigned short
Size of ncharcollationspecbuffer (at least 256+1).
ncharencodingbuffer char *
Pointer to the nchar encoding string buffer.
ncharencodingbufsize unsigned short
Size of ncharencodingbuffer (at least 50+1).
other_pages a_sql_uint32
Number of pages that are not table pages, index pages, free pages, or bitmap pages.
page_usage a_bit_field
Set TRUE to report page usage statistics, otherwise FALSE.
quiet a_bit_field
Set TRUE to operate without confirming messages.
statusrtn MSG_CALLBACK
Address of a status message callback routine or NULL.
sysinfo a_sysinfo
Inline a_sysinfo structure.
totals a_table_info *
Pointer to a_table_info structure.
version unsigned short
DBTools version number (DB_TOOLS_VERSION_NUMBER).
Parent topic:
Database Tools C API Reference
Created May 23, 2013. Send feedback on this help topic to Technical Publications:
pubs@sybase.com