FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
|
#1
|
|||
|
|||
Transacciones en Firebird
Hola,
Utilizo la base de datos Firebird 2.1. Tengo un modulo que accede a unas tablas para hacer unas inserciones. Se hace a traves de unas transacciones.
Al utilizar el sistema en red, cada cierto tiempo daba error el proceso, pero si inmediatamente se volvía a generar ese proceso anterior, lo hacía sin problemas. Así que se intentó "catch" el problema, o sea la excepción, y daba un error del tipo Código:
lock conflict in wait transaction violation of primary key or unique key constraint ..... Entonces mi pregunta es si no hay algo parecido al de MySQL, pero para hacerlo con Firebird. Muchas Gracias. |
#2
|
||||
|
||||
Saludos.
Como consejo revisa bien el manejo de las transacciones por lo regular no es buena practica el realizar bloqueos explícitos. Te pongo la referencia del Release Notes de FB 1.5: Cita:
__________________
Gracias, Rolphy Reyes |
#3
|
||||
|
||||
Creo ke te dejaron igual...jajajaja
|
#4
|
|||
|
|||
transacciones..
A alguien le puede servir... al fin y al cabo a eso vinimos al club a aportar algo..
Tal como lo comenta RolphyReyes.. el uso de las transacciones no puede ser tan general, mas ahun si se están ejecutando sentencias sobre varias tablas.. lo recomendable es buscar sobre temas bloqueos pesimistas y/o bloqueos optimistas.. me parece como plantea inicialmente el problema funcionara muy bien en un programa que se ejecute en una sola maquina, en un ámbito de red tendrá muchos problemas.. Yo estoy teniendo situaciones donde requiero hacer un manejo adecuado de transacciones y espero continuar alimentando el hilo hasta que encuentre solución a mi situación y con eso ayudamos a otros.. |
#5
|
||||
|
||||
#6
|
|||
|
|||
notevi..
Gracias muy gentil, esta muy completico el documento....
Si te vi y te vi muy bien... gracias... |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Transacciones En Firebird | espectro_jd | SQL | 3 | 21-02-2007 18:54:40 |
Transacciones anidadas en firebird | Er_Manué | Conexión con bases de datos | 5 | 07-12-2005 14:53:10 |
Transacciones FireBird con Zeos | vichovi | Conexión con bases de datos | 3 | 13-07-2005 08:49:29 |
Transacciones en FireBird | El_Raso | Firebird e Interbase | 1 | 26-11-2004 16:22:04 |
Comunicación entre transacciones (Firebird 1 + Ibo) | apicito | Firebird e Interbase | 4 | 08-01-2004 19:01:56 |
|