<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>29 Jan 2016 17:45:00 Z</lastBuildDate><pubDate>29 Jan 2016 17:08:00 Z</pubDate><description>Hi everybody,&#13;
I'm using a service that connects to an external MySQL database, and I'm trying to simulate the loss of this particular connection.&#13;
The strange thing is that whenever i try to call the function SQLExec to run a simple query (just to check if the connection is still avaliable or not), the service suddenly crashes at that precise spot, without giving SQLExec the possibility to return false.. Is that normal behaviour from it?&#13;
Here's the code that i actually run:&#13;
Query is string = "SELECT id, nickname, password FROM users WHERE nickname = '%1' AND password = '%2'"&#13;
&#13;
sQuery2 is string= StringBuild(sQuery,usr,psw)&#13;
b is string="myQuery"&#13;
***IF NOT SQLExec(sQuery2,b) THEN&#13;
SQLInfo(b)&#13;
ServiceWriteEventLog("Error:"+SQL.MesError)&#13;
END&#13;
&#13;
&#13;
the *** indicates where the service crashes&#13;
TIA</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection/read.awp</link><title>Service crash on SQLExec without connection</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/56146-service-crash-sqlexec-without-connection-56152/read.awp</comments><pubDate>29 Jan 2016 17:45:00 Z</pubDate><description>sorry my fault .&#13;
&#13;
if it work as same when connect to webservice ,&#13;
sqlexec some error are not return . sqlexec will still retu…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection-56152/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection-56152/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection/read.awp">Service crash on SQLExec without connection</source><title>Re: Service crash on SQLExec without connection</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection-56151/read.awp</comments><pubDate>29 Jan 2016 17:33:00 Z</pubDate><description>If I read well it seems he's talking about a windows service not a webservice.&#13;
&#13;
By the way, I don't know how to help.. my post…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection-56151/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection-56151/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection/read.awp">Service crash on SQLExec without connection</source><title>Re: Service crash on SQLExec without connection</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection-56150/read.awp</comments><pubDate>29 Jan 2016 17:32:00 Z</pubDate><description>Hi CCC2,&#13;
thank you for your quick answer&#13;
I agree with you, the handling of errors in webservices could be very tricky... but a…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection-56150/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection-56150/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection/read.awp">Service crash on SQLExec without connection</source><title>Re: Service crash on SQLExec without connection</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection-56149/read.awp</comments><pubDate>29 Jan 2016 17:26:00 Z</pubDate><description>Hi,&#13;
&#13;
if you are using webservice that come with WD then yes it's normal . some error also not catch and return . worse part , …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection-56149/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection-56149/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56146-service-crash-sqlexec-without-connection/read.awp">Service crash on SQLExec without connection</source><title>Re: Service crash on SQLExec without connection</title></item></channel></rss>
