Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check which procedure or routine called Access method
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Check which procedure or routine called Access method
Miscellaneous
Thread ID:
01679909
Message ID:
01679909
Views:
68
Hi,

I implemented the approach of recovering a SQL Server connection using the access method of the connection handle.
Example:
connection handle is
oApp.conn_handle
Method:
oApp.conn_handle_access
I updated 7 customers with this change. I also enabled a quiet log of every time the connection is "recovered."
So far, I noticed (after one day), that one customer had 3 entries in this log. No error messages. This is good.

Now I would like to know which routines, or which CA objects, trigger the connection restore. Because I use this call
=oApp.conn_handle from 3 methods of the CA class and I also use this call from the procedure that uses SQLEXEC() with a SQL Select statement. That is, I call the =oApp.conn_handle before the SQLEXEC()

The only way I see to be able to track these calls is by creating an application property and setting a certain value. Then checking the value inside the oApp.conn_handle_access.

Anyone can suggest an alternative method?

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
Next
Reply
Map
View

Click here to load this message in the networking platform