Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Increment Field
Message
 
 
À
11/04/2008 15:41:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01309981
Message ID:
01310055
Vues:
30
>>That was a tip by Tamar Granor on the last NY User Group meeting.
>
>Did Tamar show this exact code for this exact purpose? Is the use of RECNO() in SELECT - SQL guaranteed to work in this manner in VFP9?
>

Basically, we were going to skip this slide but I asked Tamar to stop on this problem as it sounded interesting. It was very quick so I don't really remember if she showed this tip in action or not. It should be in her book too.

Hopefully she'll answer herself here later on.

>In earlier versions of VFP I got burned with some very hard-to-track bugs when using RECNO() in SELECTs. There were significant SQL engine enhancements in VFP9; maybe it's now safe to use it that way. However, VFP9 also supports more complex queries in general, and without a lot of testing, how can we be assured that RECNO() will work as expected in these scenarios?
>
>Another consideration is that using RECNO() in a query is not ANSI-compliant. So, you couldn't use it to pull data off a non-VFP backend.

That's for sure. In SQL Server you may use NextID trick, though I don't recall at the moment and need to search.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform