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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cursor doesnt have correct field size for MySQL views 1

Status
Not open for further replies.

bluesw3

Programmer
May 27, 2003
11
0
0
US
Ive tried Cursor Adapters and SQL Pass-Throughs but whenever I access an empty MySQL table my cursors field size becomes 0 not allowing me to pass any data in the standard fasion. Is this a limitaion between VFP and MySQL?
 
Check the ODBC driver options for the connection.
Options you can change and see if works are :
1.Don't optimize column width
2.Pad CHAR to full length

If you use string connections, there is OPTION keyword but I don't know how to send option values.
 
Thanks.
I wasn't aware of those driver options. Im thinking it must be the 'Don't Optimize Column Width' option as that is checked in the DSN config. The DSN connection doesnt have the same problem so I'll see if I can send those options in the string connect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top