Search found 55 matches: reconnect

Return to advanced search

Re: FW_OpenAdoConnection reconnect

Thank you Rao
by Maurizio
Thu Dec 14, 2023 10:59 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 538

Re: FW_OpenAdoConnection reconnect

"ServerAddress:port"

eg:
Code: Select all  Expand view
190.30.20.20:3306
by nageswaragunupudi
Thu Dec 14, 2023 10:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 538

Re: FW_OpenAdoConnection reconnect

Hello Rao
how to specify the port with FW_OpenAdoConnection() ?

Maurizio
by Maurizio
Thu Dec 14, 2023 7:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 538

Re: FW_OpenAdoConnection reconnect

Code: Select all  Expand view
oCn := FW_OpenAdoConnection( "MSSQL,"+xSOURCE+","+xDATABASE2+","+xUSERID+","+XPASSWORD, .T. )


We can also write like this:

Code: Select all  Expand view
oCn := FW_OpenAdoConnection( { "MSSQL", xSOURCE, xDATABASE2, xUSERID, XPASSWORD }, .T. )
by nageswaragunupudi
Thu Dec 14, 2023 4:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 538

Re: FW_OpenAdoConnection reconnect

Thank you Rao
by cdmmaui
Thu Dec 14, 2023 4:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 538

Re: FW_OpenAdoConnection reconnect

... is closed. If the value >= 1 the connection is open and the actual value depends on the current activity. If oCn is closed we can try reconnect by oCn:Open() This is a sample code to check the connection status and try to reconnect. function Check( oCn )   if oCn:State ...
by nageswaragunupudi
Thu Dec 14, 2023 3:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 538

FW_OpenAdoConnection reconnect

Hello Everyone, Is it possible to determine if FW_OpenAdoConnection is still alive before a FW_OpenRecordSet call and if it is NOT, is there a way to reestablish connection? Here is my sample code establishing connection. oCn := FW_OpenAdoConnection( "MSSQL,"+xSOURCE+","+xDATABAS...
by cdmmaui
Wed Dec 13, 2023 10:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 538

Re: Lost connection to MySQL server during query

Our FWH maria library initially connects to the server with MYSQL_OPT_RECONNECT option. As many other users advised, time out or sleeping and any such reasons are irrelevant. Even if timed out, any communication with the server ( eg even a simple oCn:Ping() ) will automatically wake up the connectio...
by nageswaragunupudi
Mon Sep 04, 2023 4:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Lost connection to MySQL server during query
Replies: 37
Views: 12375

Re: Lost connection to MySQL server during query

... "lost Connection" is shown and an error message is generated. Mr Rao says " But please keep in mind, you do not need to try to reconnect. All that kind of work, the library has already done. " I just would like to know, the best approach to prevent this error message when ...
by vilian
Fri Aug 04, 2023 7:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Lost connection to MySQL server during query
Replies: 37
Views: 12375

Re: Lost connection to MySQL server during query

... for showing your custom message instead of the library's built in message. Is that okay? But please keep in mind, you do not need to try to reconnect. All that kind of work, the library has already done.
by nageswaragunupudi
Tue Aug 01, 2023 9:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Lost connection to MySQL server during query
Replies: 37
Views: 12375

Re: Handle error para desconexion de MySQL - Reintentar linea

There is not time limit if the internet or network is restored even after an hour it will be automatically reconnected. Even during disconnection, the user can continue to browse, print, export to excel and do everything except editing and writing data to the database. Even ...
by nageswaragunupudi
Mon Jul 03, 2023 9:13 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Handle error para desconexion de MySQL - Reintentar linea
Replies: 1
Views: 171

Re: Fix for Resedit

Rick,

You are right. Disconnect internet then it runs properly, and even if you reconnect again it continues working.

But with internet connection, it exits on start.

The ResEdit case... :-)
by Antonio Linares
Thu Aug 05, 2021 11:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fix for Resedit
Replies: 14
Views: 1430

Lost connection MySQL - Catch error

... with WiFi networks, where, thanks to FiveWin for existing, when they have a micro-cut of a few seconds, it freezes for a couple of seconds and reconnect. The problem is that when it tries to reconnect and does not do so in 15 seconds, it gives me a [b] Fatal Error [/ b] where the application ...
by nlerdafehn
Thu May 13, 2021 9:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Lost connection MySQL - Catch error
Replies: 5
Views: 887

Rowset failure

... failure, a rowset returns the message: http://maxxtech.com.br/forum/error-rowset.jpg I have already tried to make an attempt to reconnect and this is ok, I just wish that the error message did not appear, how to do it?
by ctoas
Wed Mar 17, 2021 7:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Rowset failure
Replies: 2
Views: 499

Re: TDolphin y Lost connection to MySQL server during query

... procedure Connection_Test() Local oError, lConectaNovamente := .f. TRY if !M->oServer:Execute( "SET @dummy=0" ) M->oServer:ReConnect() endif CATCH oError lConectaNovamente := .t. END if lConectaNovamente MsgRun("Tentando Reconectar no Banco de Dados...",, {|| Conecta_Banco() ...
by MGA
Mon Apr 20, 2020 1:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TDolphin y Lost connection to MySQL server during query
Replies: 4
Views: 826
Next

Return to advanced search