Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get Alias from RV Connection Handle?
Message
 
 
To
01/06/2016 03:58:47
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows Server 2012 R2
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01636906
Message ID:
01636907
Views:
57
Did you try CURSORGETPROP()?

>I'm debugging a VFP app that uses a SQL Server backend. It consistently errors at one point with a SQL Server error. Extended information per AERROR( ) is:
>
>1526
>Connectivity error: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt
>[Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt
>S1000
>0
>1
>
>At the point of failure there are 25 ODBC statements using one shared connection. Spinning through them using ASQLHANDLES( ) and SQLGETPROP( ) shows that the ConnectBusy property of the last one (#25) is .T., for all the others it's .F..
>
>These handles support remote views spread out across 5 datasessions. Is there a quick (or any) way to find out which RV/cursor corresponds to handle 25?
>
>FWIW the error happens because a framework routine tries to run a trivial query ( SELECT 1 ) using the same shared connection (ironically, to test functionality). Both before and after trying to run this trivial query there are 25 handles and #25's ConnectBusy is .T.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform