Ver Mensaje Individual
  #13  
Antiguo 09-05-2005
Avatar de hgiacobone
hgiacobone hgiacobone is offline
Miembro
 
Registrado: may 2003
Ubicación: La Plata, Bs. As., Argentina
Posts: 165
Reputación: 22
hgiacobone Va por buen camino
Solo una pequeña observacion: el BeginTrans va fuera del Try, sino nunca salta.
Código:
 
Código Delphi [-]
 
Begin
..... MyAdoConnection.BeginTrans; Try
MyAdoCommand.Connection := MyAdoConnection; cSQL := 'INSERT INTO....' MyAdoCommand.CommandText := cSQL; MyAdoCommand.Execute; MyAdoConnection.CommitTrans;
Except
MyAdoConnection.RollbackTrans;
end;
end;
__________________
Gracias de antemano por vuestra ayuda.
·.:*:.·Yako·.:*:.·
Responder Con Cita