<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>10 Apr 2018 10:17:00 Z</lastBuildDate><pubDate>30 Mar 2018 21:05:00 Z</pubDate><description>Hi,&#13;
&#13;
I facing a situtation where HOpenConnection() does NOT return false even when there is no connection possible to the database. It look like some kind of cache problem or something like that.&#13;
&#13;
First time I open a connection&#13;
I run some querys and so to present info to users on a big screen&#13;
Then I close the connection&#13;
&#13;
Every 30 seconds the info is refresh using a timer. Again, HOpenConnection, show data, HCloseConnection.&#13;
&#13;
Now I unplug the network. Wait for the next timer loop and then HOpenConnection still returns TRUE, indicating the connection is open?!?!&#13;
Also a HOpen(Tbl_License) returns TRUE.&#13;
However using the first real data access with HReadFirst there is finally an error. See below.&#13;
&#13;
Why doesn't HOpenConnection return FALSE ??&#13;
native SQLSERVER access error.&#13;
Error Number = 117&#13;
&#13;
Unable to open or read file.&#13;
&#13;
Error 80004005 returned by SQL Server&#13;
Description: Deferred prepare could not be completed.&#13;
SQL State:&#13;
SQL Error Number: 0&#13;
&#13;
Sub-error #1&#13;
Description: Unable to open a logical session&#13;
SQL State: 08S02&#13;
SQL Error Number: -1&#13;
&#13;
Sub-error #2&#13;
Description: SMux Provider: Physical connection is not usable</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect/read.awp</link><title>WD22 - Sqlserver reconnect</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65174/read.awp</comments><pubDate>10 Apr 2018 10:17:00 Z</pubDate><description>Hi Derek,&#13;
&#13;
finally had some time to test this and it seems to help! This function does some black magic with the variable inde…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65174/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65174/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect/read.awp">WD22 - Sqlserver reconnect</source><title>Re: WD22 - Sqlserver reconnect</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65119/read.awp</comments><pubDate>3 Apr 2018 15:15:00 Z</pubDate><description>Arie&#13;
&#13;
Have you tried VariableReset(MyConnection) before HOpenConnection() ?&#13;
&#13;
VariableReset() sets all values of the variable…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65119/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65119/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect/read.awp">WD22 - Sqlserver reconnect</source><title>Re: WD22 - Sqlserver reconnect</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65108/read.awp</comments><pubDate>2 Apr 2018 20:02:00 Z</pubDate><description>Well, detecting the connection is broken or lost is not the problem. At the first point data is really read, you will get an err…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65108/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65108/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect/read.awp">WD22 - Sqlserver reconnect</source><title>Re: WD22 - Sqlserver reconnect</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65082/read.awp</comments><pubDate>30 Mar 2018 22:32:00 Z</pubDate><description>Hello Arie&#13;
&#13;
I ran into this year's ago I ended up opening a socket first to make sure there is a connection available then clo…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65082/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65082/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect/read.awp">WD22 - Sqlserver reconnect</source><title>Re: WD22 - Sqlserver reconnect</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65081/read.awp</comments><pubDate>30 Mar 2018 21:34:00 Z</pubDate><description>Hi Arie,&#13;
&#13;
I'm GUESSING here... But based on the error message content: "Deferred prepare..." - "...Physical connection is not …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65081/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect-65081/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65077-wd22-sqlserver-reconnect/read.awp">WD22 - Sqlserver reconnect</source><title>Re: WD22 - Sqlserver reconnect</title></item></channel></rss>
