Read a page of binary data from the server.
DBINT dbreadpage(dbproc, dbname, pageno, buf) DBPROCESS *dbproc; char *dbname; DBINT pageno; BYTE buf[];
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.
The name of the database of interest.
The number of the database page to be read.
A pointer to a buffer to hold the received page data. Adaptive Server pages are currently 2048 bytes long.
The number of bytes read from the server. If the operation was unsuccessful, dbreadpage returns -1.
dbreadpage reads a page of binary data from the server. This routine is primarily useful for examining and repairing damaged database pages. After calling dbreadpage, the DBPROCESS may contain some error or informational messages from the server. These messages may be accessed through a user-supplied message handler.
dbreadpage alters the contents of the DBPROCESS command buffer.
WARNING! Use this routine only if you are absolutely sure you know what you are doing!