solidDB Help : Programming : Deploying SMA and LLA applications : Deploying LLA applications : Starting and stopping the LLA server : Implicitly starting and stopping an LLA server with SA API function calls
  
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.
To create a database, you must use an explicit startup function, such as SSCStartServer with the appropriate parameters, see Explicitly starting and stopping an LLA server with SSC API calls, or create a database as for a standard server, see Creating a new database.
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:
/* Open Connection */
SaConnect(...);
Server Started Here
... sa calls
/* Close Connection */
SaDisconnect(...);
Server Shut Down Here
Go up to
Starting and stopping the LLA server