Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is wrong with this SQL Select?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01556973
Message ID:
01557009
Vues:
86
>Hi,
>
>When I connect from a test vfp program to an Excel spreadsheet file (via ODBC driver) using the following syntax:
>
>
>cSqlSelect = 'SELECT A,B FROM "SHEET1$" WHERE 1=1'
>nResult = SQLEXEC( m.lnSQL, cSqlSelect, m.TempAlias )
>
>
>The error is "Too few parameters. Expected 2". Note that m.lnSQL has a valid handle (1) upon connecting to the Excel file.
>
>What is the 2nd parameter I am missing? TIA.

Hi Dmitry

What are A,B in your query? Probably ODBC driver is looking for field names that are supposed to be in the very first row. What field names are you getting for 'SELECT * FROM "SHEET1$" WHERE 1=1' ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform