Implicitly starting and stopping an LLA server with SA API function calls
The SA API can be used to start and shut down the LLA server only implicitly.
When the LLA server is started implicitly by the application, the server automatically opens the database that is in the working directory. The server does not create a database during an implicit startup; if a database file is not found, the server returns an error.
When function SaConnect is called for the first time, the server is implicitly started. The server is shut down implicitly when the user application calls function SaDisconnect and there are no more subsequent connections.
The following example demonstrates the use of the SaConnect and SaDisconnect API calls to start and stop the server: