Programming Guide |
Verifies that a database engine is initialized
#include <dmuproto.h>int dm_is_engine(char *engine);
engine
- Specifies an engine name. The engine name is the character string assigned to a database engine in the
dbiinit.c
or Windows initialization file. For more information about specifying engine names, refer to Chapter 8, "Connecting to Databases," in Application Development Guide.
- 1 True: Engine is initialized.
// Test if engine was installed
#include <smdefs.h>
#include <dmuproto.h>
int
eng_connection()
{
if (dm_is_engine("sybase"))
{
dm_dbms("engine sybase");
dm_dbms("declare c1 connection for ...");
}
return 0
}