Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I use SQLPrepare with remote views
Message
From
30/07/2003 02:19:33
 
 
To
29/07/2003 23:18:24
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00814409
Message ID:
00814813
Views:
11
This message has been marked as the solution to the initial question of the thread.
>Thank you for the feedback Aleksey.
>
>Again, I have additional questions on your feeback.
>
>1. Does this mean that I don't need to call the SQLPREPARE() function?
>
>>You should set "Prepared" property for the view:
>>DBSETPROP("viewname","VIEW","Prepared",.T.)
>>

Actually, cursorsetprop("Prepared", .t., 0) should work too if it is set when CREATE SQL VIEW command is executed, but it doesn't affect USE command.

Back to the question. You don't have to call SQLPREPARE, it is called internally when USE command for the view is executed. After that the command stays prepared and ready to use by REQUERY, no additional calls to DBSETPROP or CURSORSETPROP needed.


>2. When parameters change, how do I "prepare" the backend result? Do I issue another DBSETPROP() or CURSORSETPROP() before REQUERY()?
>

See above.

Thanks,
Aleksey.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform