Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Select statement does not work in Sql Server
Message
 
 
À
02/03/2010 09:16:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01451907
Message ID:
01451974
Vues:
67
>>In addition to Michel's observation, use field names in GROUP BY clause, not numbers.
>
>Are you saying this as a matter of Best Practice, or because it absolutley does not work in Sql Server?
>
>I just want to understand the context of your suggestion.
>
>
>On a related matter, I seem to recal a situation in VFP where you *have* to use numbers in either the Order or Group clause. Perhaps it was when doing a Union. I don't recall all the details.
>
>.

I think best practice is to use field names in SQL Server.

See also this very interesting story
http://bradsruminations.blogspot.com/2010/01/trolls-puzzle-sql-fable.html

In the UNION clause in VFP you have to use ordinals.
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