Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor from Remote View Fails
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00061408
Message ID:
00061474
Views:
41
>>I have established a remote connection to an Oracle database and am creating cursors on the fly (as needed). If a user selects a specific option, a SQL statement is submitted through SQLEXEC() function. This statement has already been optimized, tested, etc. The problem arises when I change the Form's datasession to Private. The query fails to return any results. If I revert to the Default datasession the query returns the correct results. Compounding this problem is that a different SQL statement that is issued under either condition works.
>>
>>Anyone with suggestions on this?
>
>more information: in Form1 I set the datasession to Private, in the VIEW window (VFP3) the datasession says "form1(2)". I launch form2 from this form. Form2 has data session set to default (which in this case means the private DS from form1). In the view window, the datasession combobox now says "form2(2)". All the tables opend by form2 are there along with the 1 table that was opened on form1. When I exit form2 (close & release), I return to form1. The datasession in the view window now says "unknown(2)" and the 1 table that I had open before going to form 2 is the only table left open (which is correct).

Figured it out. Private DEs are too dang frustrating when it comes to what is "SET" in VFP. The problem SQL query had a date filter and SET CENTURY was set OFF in the Private DS, but ON in the Default DS.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform