Re: Problems with SQLEXEC

Tech-Archive recommends: Fix windows errors by optimizing your registry



On 22 May, 01:43, "Dan Freeman" <s...@xxxxxxxxxxxxx> wrote:
You cannot fix a network problem from inside VFP.

The best you can do is catch the error and die gracefully. See Try/Catch in
the help system.

That said .... you don't mention which version of VFP. Connections behave
differently in the latest versions so troubleshooting advice may vary as
well.

Dan



Somnath Gupta wrote:
While executing SQLEXEC to pass a SQL statement (ranging from simple
to complex) on a previously connected (using SQLCONNECT) valid ODBC
connection to a SQL server on  a newly installed network, the error
handler sometimes (at random) is reporting SQL Server communication
failure resulting the whole execution to crash. Any ideas how to
resolve this problem ? I have suspected that it may be transient
network conditions but nothing more.
Warm Regards
Somnath- Hide quoted text -

- Show quoted text -

The Error handler is doing what Try/Catch is supposed to do, i.e.
dying out gracefully so I dont see any necessity in changing the code
there, but how can I establish to the client it is a network and not a
VFP error ? Users always have the idea that
the software is at fault. The Version of VFP is VFP 9 SP2.

Warm Regards
Somnath
.



Relevant Pages

  • Re: Problems with SQLEXEC
    ... network conditions but nothing more. ... The Error handler is doing what Try/Catch is supposed to do, ... VFP error? ... that has no network connection at all. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Problems with SQLEXEC
    ... You cannot fix a network problem from inside VFP. ... Connections behave ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Fatal Error when using Free tables in VFP 9.0.beta
    ... If it's a network problem, whether it's a free table or in a .DBC will make ... >> Microsoft Visual FoxPro MVP ... >>> I am currently evaluating VFP 9.0 beta version. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: MySQL slower than DBF ?
    ... >I worked on a system where we were doing complex queries against a large ... >as fast as VFP, even though the queries were fully Rushmore optimized. ... >workstation before it can figure out what records it wants. ... >ever observed network utilization when this is happening, ...
    (microsoft.public.fox.programmer.exchange)
  • RE: error 1104 Error reading file
    ... This is normally a problem with the network redirector on the server ... it can also be caused by anti virus or backup software. ... VFP tries to access the file can cause this error. ...
    (microsoft.public.fox.helpwanted)