6
What are the consequences of Quit / Quit of a system without closing the database tables? This harms something in the database?
I should or should not close the system tables?
procedure TfrmTelaPrincipal.EncerraSistema;
begin
Beep;
if Application.MessageBox('Deseja Realmente Encerrar o Sistema?','Pergunta',
MB_YESNO+MB_ICONQUESTION+MB_DEFBUTTON2) <> IDNO then
begin
ReciclarLixoDeSistema;
DMGeral.tbParametros.Edit;
DMGeral.tbParametrosNUMERO_ESTACOES_LOGADAS.AsInteger := DMGeral.tbParametrosNUMERO_ESTACOES_LOGADAS.AsInteger-1;
DMGeral.tbParametros.Post;
MinimizarClick(Self);
frmTelaPrincipal.Close;
end;
end;
Ps: I use the structure client/server where the database is on the server and my connection component is Firedac
This question may have a thousand different answers. It depends a lot on the structure used (client > server > database or client > database), which components are used, which database and connection logic etc ...
– Confundir
It may actually have more than one consequence, I don’t have all, but one is it frees the session record in the database server memory, if there are too many connections and this isn’t thought out, it may burst the server ram memory.
– Erick Luz
I use the client/server structure where the database is on the server and my connection component is Firedac
– Edu Mendonça