# Friday, March 06, 2009
« Connect to MySQL Databases with the Data... | Main | How To Get Storis / UniData Data From a ... »
You might see OPTION=3 in your MySQL connection string. That number--3 in this case--is the sum of a couple MySQL option flags. In this case, it's
  1. FLAG_FIELD_LENGTH: "Do not Optimize Column Width", and
  2. FLAG_FOUND_ROWS: "Return Matching Rows
So, that option setting allows you to direct your MySQL server to behave in a specific manner for the duration of each connection. A complete table of these options is available in the MySQL 5.0 Reference Manual.

You might also want to use OPTION=67108864, which allows you to execute multiple sql statements in a single MySQL Connector/ODBC batch, separated by semicolons. To keep other things working the way most people expect, just use 67108867, which is all three options combined.

Friday, March 06, 2009 6:00:23 PM (Central Standard Time, UTC-06:00)
All comments require the approval of the site owner before being displayed.
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview