Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC() Not Consistent with Data Types
Message
From
27/06/2011 14:24:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
SQLEXEC() Not Consistent with Data Types
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01516317
Message ID:
01516317
Views:
181
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
Next
Reply
Map
View

Click here to load this message in the networking platform