DBExec
DBExec Initiate execution of a query
#include <DatabaseAccess.h> Data Access Manager
OSErr DBExec( sessID, asyncPB);
long sessID ; is the session ID
DBAsyncParmBlkPtr asyncPB; is a pointer to the asynchronous parameter
block
returns Error Code; 0=no error
The DBExec function initiates execution of a query that you have sent to the
data server. Use the DBSend and DBSendItem functions to send a query to the
data server. Use the DBState function to determine the status of a query after
you have initiated execution.
sessID is the session ID that was returned by the DBInit function.
asyncPB is a pointer to the asynchronous parameter block. If you do not want
to call the function asynchronously, set this parameter to NIL
Returns: an operating system Error Code.
noErr (0) Execution has begun
rcDBError (-802) Error trying to begin execution
rcDBBadSessID -(806) Session ID is invalid
rcDBAsyncNotSupp (-809) The database extension does not support asynchronous
calls
rcDBPackNotInited (-813) The InitDBPack function has not yet been called