Error Writing Data To The Connection Delphi
Contents |
0 Watchers: 7 Operations If you were logged in you would be able to see more operations. Firebird Core Error writing data to the connection (2.5.1) / transactions reliability / database corruption Created: 10/Jul/11 06:20
Error Reading Data From The Connection Delphi
AM Updated: 16/Jul/11 06:14 PM Component/s: Engine Affects Version/s: 2.5.1 Fix Version/s: None Environment: error writing data to the connection firebird Windows 32bits superserver Description « Hide the connection to the database is lost with error "error writing data to the connection" while running this piece of code (B): (Error message returned may vary from time to time) If you re run the code (B), then, after the 2nd error, when you try to reconnect the database is corrupted (wrong page type) A: Run the code recreate global temporary table test (x varchar(20) not null, y varchar(20) not null) on commit preserve rows B: Run the code execute block as declare variable i integer; declare variable j integer; begin i=0; while (i<500) do begin execute statement 'recreate global temporary table test (x varchar(20) not null, y varchar(20) not null) on commit preserve rows'; execute statement 'create unique index xtest on test (x,y)'; execute statement 'grant all on test to FMUSER'; j=0; while (j<10000) do begin in autonomous transaction do execute statement 'insert into test (x,y) values ( ' || cast(i as varchar(20)) || ', ' || cast( j as varchar(20)) || ')'; j=j+1; end i=i+1; end end Description the connection to the database is lost with error "error writing data to the connection" while running this piece of code (B): (Error message returned may vary from time to time) If you re run the code (B), then, after the 2nd error, when you try to reconnect the database is corrupted (wrong page type) A: Run the code recreate global temporary table test (x varchar(20) not null, y varchar(20) not null) on commit preserve rows B: Run the code execute block as declare variable i integer; declare variable j integer; begin i=0; while (i<500) do begin execute statement 'recreate global temporary table test (x varchar(20) not null, y varchar(20) not null) on commit preserve rows'; execute statement 'create unique index xtest on test (x,y)'; execute statement 'grant all on test to FMUSER'; j=0; while (j<10000) do begin in autonomous transaction do execute statement 'insert into test (x,y) values ( ' || cast(i as varchar(20)) || ', ' || cast( j as va
posts • Page 1 of 1 How do I reopen lost connection? by zd » Thu 02 Oct 2008 16:18 Okay, I can't seem to figure this out. I'm connected to the database, I have a bunch of events registered in my app. I stop Firebird using the control panel applet. I get the "unknown ISC error 0" messages (thanks for the fix, btw) Then I display a dialog that would allow my users to reconnect to the database. I restore the connection in my test manually (using the control panel applet), then I make my program call IBCConnection.Connect, then I run a custom query. (IBCQuery.Open) The result: "Error writing data to connection" message. I've tried disconnecting then reconnecting but with http://tracker.firebirdsql.org/browse/CORE-3550 no luck. If I create a new TIBCConnection object it can connect, but the old one can't seem to connect again. How do I reconnect once the connection has been cut off then restored to the server? Thanks! zd Posts: 78Joined: Sun 01 Jul 2007 13:16 Top by Plash » Fri 03 Oct 2008 12:58 You should call the Disconnect method before calling Connect. Plash Devart Team Posts: 2844Joined: Wed 10 May 2006 07:09 Top http://forums.devart.com/viewtopic.php?t=13023 by zd » Fri 03 Oct 2008 14:37 If I call disconnect before connect, it raises an "Error writing data to connection" message! If I stop the firebird server handle the unknown isc error 0 error in my program relaunch the firebird server call connect then the "Error writing data to connection" message comes when I want to execute a query. If I call disconnect (after relaunching the server), I get the "Error writing data to connection" message instantly, and after that, I call connect, and when executing a query, I get "can't perform operation on inactive transaction message". What should I do to solve the problem? Thanks! zd Posts: 78Joined: Sun 01 Jul 2007 13:16 Top by Plash » Tue 07 Oct 2008 07:26 We could not reproduce the problem. Please send to ibdac*devart*com a complete small sample that demonstrates the problem. Plash Devart Team Posts: 2844Joined: Wed 10 May 2006 07:09 Top by zd » Wed 08 Oct 2008 08:55 Sample program sent. zd Posts: 78Joined: Sun 01 Jul 2007 13:16 Top by zd » Fri 10 Oct 2008 14:24 Hi! Have you managed to find the source of the problem? zd Posts: 78Joined: Sun 01 Jul 2007 13:16 Top by Plash » Mon 13 Oct 2008 11:32 We cannot reproduce the problem with your sample. Maybe it can help if you cal
de Hoy Ir a la Página... Herramientas Buscar en Tema Desplegado #1 11-02-2005 defcon1_es Miembro Registrado: Mar 2004 Ubicación: Cuenca - España Posts: 524 Error writing data to the connection. Hola compañeros, desde hace unos dias, a un cliente que tengo http://clubdelpra.cluster003.ovh.net/foros/showthread.php?t=18424 le aparece el siguiente error en los puestos: "Error writing data to the connection." "Se ha forzado la http://www.delphipraxis.net/110469-error-writing-data-connection.html interrupción de una conexión existente por el host remoto." Le sale el error de forma aleatoria, sin hacer nada en especial en la aplicación. Y en el log de FireBird aparece: "Control services error 1061" ¿El error es debido a Windows, a una posible corrupción de la BD?... No se, estoy un poco perdido. Código: Según MSN: (1061) ERROR_SERVICE_CANNOT_ACCEPT_CTRL The service cannot accept control messages at this time. Gracias a the connection todos. __________________ Pintor de pantallas... defcon1_es Ver Perfil Encontrar Todos los Mensajes de defcon1_es #2 15-02-2005 defcon1_es Miembro Registrado: Mar 2004 Ubicación: Cuenca - España Posts: 524 Ok, problema solucionado. El cliente no tenía instalados los drivers correctos de la tarjeta de red del servidor. __________________ Pintor de pantallas... defcon1_es Ver Perfil Encontrar Todos los Mensajes de defcon1_es « Tema Anterior | Próximo Tema » Herramientas Mostrar Versión Imprimible Enviar por Correo Desplegado Mode Lineal Cambiar a Modo Hibrido Cambiar a Modo Hilado Buscar error writing data en Tema Búsqueda Avanzada Normas de Publicación no Puedes crear nuevos temas no Puedes responder a temas no Puedes adjuntar archivos no Puedes editar tus mensajes El código vB está habilitado Las caritas están habilitado Código [IMG] está habilitado Código HTML está deshabilitado Saltar a Foro User CP Mensajes Privados Suscripciones Quien Está en Línea Buscar en los Foros Foros Inicio Principal Noticias Conexión con bases de datos Internet Impresión OOP SQL API de Windows Gráficos Servers Providers Varios FireMonkey Delphi para la web Desarrollo en Delphi para Android Desarrollo en Delphi para iOS/OSX Bibliotecas de código fuente [GH Freebrary] Otros entornos y lenguajes C++ Builder Lazarus, FreePascal, Kylix, etc. PHP JAVA .NET HTML, Javascript y otros ASM y Microcontroladores Python Bases de datos Firebird e Interbase Tablas planas MySQL Oracle MS SQL Server DB2 PostgreSQL Sistemas operativos Linux Windows Mac Temas relacionados Debates Seguridad Redes Otros temas Humor La Taberna Premium Proyecto Monitor de Servidores Trucos Bolsa de trabajo ¿Quieres trabajar? ¡Quiero trabajar! La franja
durchsuchen Ansicht Themen-Optionen Error writing data to the connection ??? Ein Thema von Sascha-L · begonnen am 18. Mär 2008 · letzter Beitrag vom 19. Mär 2008 Antwort Seite 1 von 2 1 2 Nächste Sascha-L Registriert seit: 14. Nov 2007 Ort: Finnentrop 50 Beiträge Delphi 7 Professional #1 Error writing data to the connection ??? 18. Mär 2008, 14:33 Datenbank: Firebird • Version: 1.5 • Zugriff über: BDE Hallo, Ich habe fogendes Problem, in einem alten Delphi Projekt greife ich mit einem Select auf eine Firebird Datenbank zu und bekomme dann die Fehlermeldung "Allgemeiner SQL Fehler - Error writing data to the connection". Was hat dies zu bedeuten und wieso tritt der Fehler auf? MfG Sascha Lütkemeier Sascha Lütkemeier Zitat Sascha-L Öffentliches Profil ansehen Mehr Beiträge von Sascha-L finden Der_Unwissende Registriert seit: 13. Dez 2003 Ort: Berlin 1.756 Beiträge #2 Re: Error writing data to the connection ??? 19. Mär 2008, 05:28 Hi, ich muss Dir echt meine Bewunderung aussprechen, es ist glaube ich echt schwer noch stärker mit Informationen zu geizen, als Du es jetzt gerade mit Deinem Post tust. Wie meinst Du denn können Dir die Leute helfen, wenn Du nicht sagst, was genau Du machst? Wie sieht der zugehörige Code aus? Was ist in der DB? Klappt denn dort überhaupt der Zugriff (z.B. von der Konsole)? Ist also die Select-Anweisung überhaupt gültig? Klappt generell der Verbindungsaufbau? .... Also sei doch bitte so nett und ergänz so viel Information wie möglich, insbesondere sollte immer gesagt werden, was genau Du machst oder schon versucht hast und was davon klappt und was nicht. Und ist sichergestellt, dass der Fehler von dem Absetzen der Select-Anweisung kommt? Gruß, Der Unwissende Zitat Der_Unwissende Öffentliches Profil ansehen Mehr Beiträge von Der_Unwissende finden Sascha-L Registriert seit: 14. Nov 2007 Ort: Finnentrop 50 Beiträge Delphi 7 Professional #3 Re: Error writing data to the connection ??? 19. Mär 2008, 07:41 Hi und ersteinmal entschuldigung für den 1. schwammigen Post... Das Projekt besteht schon seit 3 Jahren und Plötzlich erhielten wir diese Meldung, leider mehrfach in den letzten Tagen. Mit Mad Exception habe ich festgestellt, dass es bei einem Select-Befehl klemmt. Das Sys