Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Select statement does not work in Sql Server
Message
De
02/03/2010 01:16:38
 
 
À
02/03/2010 01:06:36
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:
01451912
Vues:
72
>Good catch.
>
>I've started writting a method that will convert a VFP Select to a Sql Select. It does not cover every case, but I'm adding to it each time I find something in my situation that I can easily deal with using basic string functions.
>
>I know there is a page on fox.wikis.com that has a comparison page and I am referring to that too as I encounter each case.

In order to avoid that, you may want to parameterize the SQL select. So, no matter if this is a Bit in SQL Server or a Logical in VFP, you would then be able to pass your parameter value as if, based on the environment you are sitting in. For example, if VFP, I was passing .F. for the parameter. In VB.Net, I am passing False. But, in SQL Server, it is stored in 0 and 1. And, that works.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform