SMA and LLA Guide : Creating and running SMA applications : Starting and shutting down SMA server : Shutting down SMA server
  
Shutting down SMA server
SMA server is shut down using the solidDB® ADMIN COMMANDs.
Procedure
1 To prevent new connections to solidDB®, close the database by entering the following command:
ADMIN COMMAND 'close'
2 Exit all solidDB® users by entering the following command:
ADMIN COMMAND 'throwout all'
3 Stop solidDB® by entering the following command:
ADMIN COMMAND 'shutdown'
Results
All the shutdown mechanisms start the same routine, which writes all buffered data to the database file, frees cache memory, and finally terminates the server program. Shutting down a server may take awhile since the server must write all buffered data from main memory to the disk.
Tip: It is also possible to stop the solidDB® server in SMA mode by having the application call an SSC API function SSCStopServer(). Only one application can start and stop the SMA server. The same application that started the SMA server must also perform the shutdown. For details, see SSCStopServer.
See also
Starting and shutting down SMA server