Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select slows down when using (BUFFERING=.T.)
Message
De
27/05/2009 00:37:41
 
 
À
27/05/2009 00:04:51
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01402021
Message ID:
01402170
Vues:
46
>Alias() is not a safe thing, it will bang in the end if you had nothing in the current workarea. Also, you don't even have to keep the record number... just open your cursor again:
>
>
>Lparameters tiQuoteNo
>
>lnSelect=Select()
>
>Select 0
>use dbf("Quote") again alias (sys(2015))
>Sum (qty*price);
> For quote_no=tiQuoteNo And Print=.T.;
> To Thisform.nQuoteTotalPrice
>use
>
>Select (lnSelect)
>
>Return Thisform.nQuoteTotalPrice
>
1. Alias() - Oh yeah. I knew that, and usually do a better job; like this:
If !empty(lcAlias)
 Select (lcAlias)
Endif
However, I like your method, and I will start to use it.


2. Do you think Use Again will allow it to see the buffered records that have not been saved yet?

.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform