473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ODBC driver problems

Hi all,

I'm working with:

MySql:
Database server: mysql-4.1.7-essential-win
ODBC driver: MyODBC-3.51.10-x86-win-32bit
Administrator: mysql-administrator-1.0.14-win
Query browser: mysql-query-browser-1.1.2-win

Visual FoxPro 8.0 SP1

In FoxPro I can connect to the database via ODBC. The used connect
string is:
lcConnectString =;
"DRIVER={MySQL ODBC 3.51 Driver};" +;
"SERVER=" + THIS.cServer + ";" +;
"UID=" + THIS.cUsrName + ";" +;
"PASSWORD=" + THIS.cPassword + ";" +;
"DB=" + THIS.cDatabase + ";" +;
"WSID=" + THIS.cWorkstationName + ";" +;
"PORT=3306;" +;
"SOCKET=;" +;
"OPTION=" + TRANSFORM(1+4+8+64+512+1024+2048+16384+524288) + ";" +;
"STMT;"

Retrieving/updatings table structures and indexes works fine.
When I retrieve a record, I see some strange things;
- text comes in as binary (general in VFP)
- varchar comes in as text (memo in VFP)
- decimal comes in as currency

Huh ?

The strange fields as they come in in VFP are:
Structure tb1
Number of data records: 1
Memo file block size: 64
Code Page: 1252
Field Field Name Type Width Dec
7 FLD14 Currency 8 4
8 FLD15 Currency 8 4
21 FLD27 Memo 4
26 FLD31 Currency 8 4
27 FLD32 General 4
30 FLD35 Memo 4
31 FLD36 Memo 4
43 FLD6 Currency 8 4

The SQL create for this table is:

CREATE DATABASE test CHARACTER SET latin1;

USE test;

CREATE TABLE tb1 (tb1rid int(8) NOT NULL AUTO_INCREMENT,
fld1 tinyint(1) NULL,
fld10 int(1) NULL,
fld11 tinyint(1) NULL,
fld12 int(2) NULL,
fld13 int(2) NULL,
fld14 decimal(5,2) NULL,
fld15 decimal(5,2) NULL,
fld16 tinyint(1) NULL,
fld17 tinyint(1) NULL,
fld18 tinyint(1) NULL,
fld19 int(3) NULL,
fld2 int(2) NULL,
fld20 date NULL,
fld21 tinyint(1) NULL,
fld22 tinyint(1) NULL,
fld23 int(10) NULL,
fld24 tinyint(1) NULL,
fld25 int(3) NULL,
fld26 date NULL,
fld27 varchar(100) NULL,
fld28 tinyint(1) NULL,
fld29 int(2) NULL,
fld3 date NULL,
fld30 int(2) NULL,
fld31 decimal(5,2) NULL,
fld32 text NULL COLLATE utf8_bin,
fld33 tinyint(1) NULL,
fld34 tinyint(1) NULL,
fld35 varchar(100) NULL,
fld36 varchar(100) NULL,
fld37 tinyint(1) NULL,
fld38 tinyint(1) NULL,
fld39 date NULL,
fld4 int(2) NULL,
fld40 tinyint(1) NULL,
fld41 tinyint(2) NULL,
fld42 int(3) NULL,
fld43 tinyint(3) NULL,
fld44 tinyint(3) NULL,
fld45 tinyint(3) NULL,
fld5 int(2) NULL,
fld6 decimal(4,2) NULL,
fld7 int(3) NULL,
fld8 int(4) NULL,
fld9 tinyint(1) NULL,
PRIMARY KEY(tb1rid)) ENGINE=MyISAM DEFAULT CHARSET=utf8
COLLATE=utf8_bin COMMENT='Configuratie';

Does anyone have an idea how this is caused and how it can be solved ?

Any help would be highly appreciated...

Kind regards, Nico
Jul 20 '05 #1
0 1636

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: rguti | last post by:
Anybody know when the new version of the ODBC Driver is gonna be out? I'm using 3.51.11-1, but I'm having problems transferring information from SQL Server. Thanks.
2
by: uli2003wien | last post by:
Dear group, we are dealing with some very specific problems with ODBC, where a connection from SQL-Server to Mysql works with ODBC-driver 3.51.10.00 and does NOT work with ODBC-driver...
0
by: uli2003wien | last post by:
Dear MS-SQL-Server-group maybe my message for MySQL is also for you of interest, since the MS-SQL-Server and it's binary_checksum function is involved...
0
by: Markus Lindner | last post by:
Hello, i have a problem connection from an unixODBC to an DB2 8.1 Instance. My DB2 is registered properly and i can access it via db2 client, now i want to establish a connection via odbc...
0
by: TheAd01 | last post by:
In an Access97 application I fetch data from an Oracle database via a linked table (via Odbc/sqlnet). The Oracle database now upgrades from 7.3 to 8.0. The Oracle odbc driver I use (2.0.3.1,...
2
by: Crazy Cat | last post by:
Hi all, I am having trouble getting linked Oracle 9 server in MS SQL Server 2005 Express to work properly. My machine is running Windows XP. The Microsoft and Oracle OLE DB Providers have...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
6
by: BillCo | last post by:
I've reached the limit of my knowledge here and I'm starting to go mad - any help would be greatfully recieved!!!! I'm having a strange problem with making pass through queries to an oracle db...
4
by: alegria4ever | last post by:
I have an Access 2000 database that links several tables from Oracle 9. For some reason or another, one of our user repeatedly gets the following error when accessing queries within this database:...
4
by: Szymon Dembek | last post by:
Hi Recently I did some DB2 and ODBC coding in Visual FoxPro. I bumped on a problem I cannot resolve. When I issue a delete statement that deletes no rows (no rows qualify for the WHERE...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.