Executes a DBMS command directly from C#include <dmuproto.h>int dm_dbms(char *dbms_cmd);
- Points to a buffer with the DBMS command to execute. Refer to Chapter 11, "DBMS Statements and Commands," for detailed descriptions of each DBMS command.
dm_dbmslets you execute any DBMS command directly from C. This function executes in the following steps:
dbms_cmdis examined for the
WITH CONNECTIONclause. If it is not used,
dm_dbmsassumes the default engine and connection.
- The colon preprocessor examines
dbms_cmdfor colon variables and performs the indicated expansion.
dbms_cmdis passed to the appropriate function for handing
DBMScommands. After executing the requested command, Panther updates all global status and error variables (
If the application has installed an entry function with
DBMS ONENTRY, an exit function with
DBMS ONEXIT, or an error handler with
DBMS ONERROR, the installed function is called for commands executed through
int start_up ()
retcode = dm_dbms ("ONERROR CALL do_error");
sm_emsg("Cannot install application error handler.")
dm_dbms ("DECLARE c1 CONNECTION FOR USER ':user' PASSWORD