Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I use SQLPrepare with remote views
Message
De
30/07/2003 02:19:33
 
 
À
29/07/2003 23:18:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00814409
Message ID:
00814813
Vues:
12
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform