Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Index required for CursorAdapter update?

Status
Not open for further replies.

ChrisRChamberlain

Programmer
Mar 23, 2000
3,392
GB
Hi all

Have a MySQL database used as a datastore containing n tables, none of which are indexed.

The data has been converted/imported from VFP tables. Using a VFP cursoradapter with a ODBC connection, changes are not written to the MySQL database.

One of the properties of the cursoradapter object is .KeyFieldList which has been assigned a fieldname that would be used as a primary index.

So is the lack of an index preventing updates being written to the MySQL database?

TIA

FAQ184-2483​
Chris [pc2]
PDFcommander.com
motrac.co.uk
 
Have you tried switching on ODBC tracing to see what's been sent and recieved rom mysql.
Actualy can you give a bit more detail?, for example are you using VFP as a front end to Mysql?.
I've never used foxpro so have no idea what's going.
The indexthing is funny as you often get issues with the M$ tools wher they wont work without an index (usualy primary key) on the base table, so the VFP adapter might be looking at the table descrion (via the standard ODBC calls) and making a decision internaly rather than mysql rejecting.
Have you tried putting an index on the Mysql table so see what happens?
 
Yes, VFP front end to MySQL.
ingresman said:
Have you tried putting an index on the Mysql table so see what happens?
Yes and still no update.


An alternative is SQL Pass-through which I already use, but was curious to see how a CA would work with MySQL. They are fine with MS Sql Server, so it's easier to go with something you know and is quicker anyway.

Thanks for your help.

FAQ184-2483​
Chris [pc2]
PDFcommander.com
motrac.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top