SMA and LLA Guide : Creating and running LLA applications : Starting and shutting down LLA server : Implicit startup with SA API function call SaConnect
  
Implicit startup with SA API function call SaConnect
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.
Note When you start the server for the first time, you must create a solidDB® database by using function SSCStartServer() and specifying the default database catalog, along with the username and password. For a description and example, read Explicit startup with SSC API function SSCStartServer.
Following is an example of implicit startup and shutdown with SaConnect and SaDisconnect:
/* Open Connection */
SaConnect(...);
Server Started Here
... sa calls
/* Close Connection */
SaDisconnect(...);
Server Shut Down Here
Note If the server is started with the SSCStartServer function call, it can only be shut down with the SSCStopServer function call.
See also
Starting and shutting down LLA server