Call the StopMainServer method to cause the database server to stop accepting regular data connections from remote sessions. You may call the StartMainServer or StopMainServer methods without removing existing sessions. When stopping the server, however, all sessions will be automatically disconnected.
This method is only valid when the engine is running as a database server and the EngineType is set to etServer. Also, this method is implicitly called when the Active is set to False.