Description
Creates a reference to an OpenEngine, running either locally or remotely.
Syntax
Error = CreateEngine (Engine, ServerSpec, DatabaseName, Flags, ShutdownSessions)
Parameters
The CreateEngine function has the following parameters.
Parameter | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Engine | Handle for the engine. Pass null. CreateEngine will return an engine handle. | ||||||||||
ServerSpec | Descriptor for local or remote server. Examples:
| ||||||||||
DatabaseName | The database .dbt file to use. | ||||||||||
Flags | See CreateEngine Constants. | ||||||||||
ShutdownSessions |
|
See also
Example
// Create an engine that will not shut down when the connections end // Uses the named pipe REVCAPI_TEST Error = CreateEngine(Engine, "\\.\REVCAPI_TEST", | "EXAMPLES",CREATE_ENGINE_OPEN_ALWAYS$, 1)