Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLEXEC() Not Consistent with Data Types
Message
De
27/06/2011 14:24:34
Steve Ritter
Rockwell Collins, Inc.
Cedar Rapids, Iowa, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
SQLEXEC() Not Consistent with Data Types
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01516317
Message ID:
01516317
Vues:
182
I am gathering data from an Excel 2010 workbook into VFP 9 SP2 using ODBC via SQLSTRINGCONNECT(). The cursor created by SQLEXEC() creates two columns of data (among many other columns) that should be of the same data type, but one is coming into VFP as data type "B" (double) and the other as data type "M" (Memo). The double field is causing me to loose the character data that also resides in the column.

When I look at the data with Excel, the cells in both columns are General fields. The first record contains column headers that start with letters ("Pin1" and "Pin2"). I have tried changing the data in the second record from numeric to alpha but it doesn't seem to make any difference.

My assumption is that the problem is somewhere in the Excel file, but I can't see where there is any difference between the two columns.

Any ideas?

Thank you for your time.

Steve
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform