[Interbase - !!! Gravar !!!]

Delphi

04/02/2003

Olá,

Gostaría de saber se realmente este processo grava diretamente no banco de dados do Servidor:

begin
.
.
.
try
begin
ExecSQL;
IBTransaction.CommitRetaining;
end
except
end;

end;

Se hà alguma configuração a ser feita no servidor ou na query / transaction / etc...

Obrigado,

Werter. [/list]


Werter

Werter

Curtidas 0

Respostas

Carlosc.jr

Carlosc.jr

04/02/2003

Olá, Gostaría de saber se realmente este processo grava diretamente no banco de dados do Servidor: begin . . . try begin ExecSQL; IBTransaction.CommitRetaining; end except end; end; Se hà alguma configuração a ser feita no servidor ou na query / transaction / etc... Obrigado, Werter. [/list]


Ola,

Sim eu so trocaria o CommitRetaining por commit e acrescentaria no except uma mensagem e um rollback assim:

begin
.
.
.
try
begin
ExecSQL;
IBTransaction.Commit;
end
except
IBTransaction.Rollback
end;

end;


GOSTEI 0
Werter

Werter

04/02/2003

:D , Obrigado, vou tentar assim.


GOSTEI 0
POSTAR