Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CA RecordRefresh()
Message
 
 
To
08/04/2021 16:58:07
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01679671
Message ID:
01679738
Views:
47
Please help me understand something:

Say you check the SQL Connection (as you indicated) using SQLEXEC(Applic.SQLHandle, "") and then, if it fails,
you run the code that calls SQLIDLEDISCONNECT(). Here is how I understand it:
if SQLEXEC(Applic.SQLHandle, "") < 0
   ASQLHANDLES(aSqlhndls)
   FOR EACH nOdbchdbc IN aSqlhndls
           =SQLIDLEDISCONNECT(nOdbchdbc)
   ENDFOR
endif 
After the above code, if I understand correctly, all SQL Server connections are disabled. So, the application need to reconnect to the SQL Server.

Then you say:
>>Each time a connection fails, you can call a routine with these statements and it will reconnect upon the >>next usage of the connection.

How does the application RECONNECT the CA?

You also wrote:
>> If it fails, it will first try to reconnect, after which if succesful would refresh your records just fine.

Again, what I don't understand is how does CA RECONNECT? What specific code RECONNECTs the application to the SQL Server?

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform