Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I use SQLPrepare with remote views
Message
De
30/07/2003 08:41:11
 
 
À
30/07/2003 02:19:33
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:
00814866
Vues:
12
Thank you again. These are very useful information.


>>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.
ramil
~~ learning to stand still
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform