Home
Contact
Blog
Articles on this page...
Archives
<
March 2009
>
Sun
Mon
Tue
Wed
Thu
Fri
Sat
22
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
Aggregation:
Categories
Blogging (2)
Development (10)
Hardware (7)
MySQL (3)
Server Administration (2)
SSD (2)
Storis (1)
UniData (1)
Virtualization (1)
Windows 7 (5)
Windows Mobile (1)
October, 2009 (2)
June, 2009 (2)
May, 2009 (3)
March, 2009 (4)
February, 2009 (3)
December, 2008 (4)
November, 2008 (4)
Blogging
Development
Hardware
MySQL
Server Administration
SSD
Storis
UniData
Virtualization
Windows 7
Windows Mobile
Blogroll
Scott Hanselman
Pick a theme:
BlogXP
business
calmBlue
Candid Blue
Continuum
dasBlog
dasblogger
dasblueblog
dasEmerald
DirectionalRedux
Discreet Blog Blue
Elegante
essence
Just Html
MadsSimple
Mobile
Mono
Movable Radio Blue
Movable Radio Heat
nautica022
orangeCream
Portal
Project84
Project84Grass
Slate
Sound Waves
Tricoleur
useit.com
Voidclass2
Sign In
Friday, March 06, 2009
« Connect to MySQL Databases with the Data...
|
Main
|
How To Get Storis / UniData Data From a ... »
MySQL option=3 in Your ODBC Connection String...What does it do?
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
FLAG_FIELD_LENGTH: "Do not Optimize Column Width", and
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.
MySQL
Friday, March 06, 2009 6:00:23 PM (Central Standard Time, UTC-06:00)
Comments [0]
Related posts:
MySQL ODBC Slow - Caused by Nod32 4.0
Connect to MySQL Databases with the Database Application Block (DAAB) in the Enterprise Library (Works for Access too!)
All comments require the approval of the site owner before being displayed.
Name
E-mail
Home page
Remember Me
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
Copyright © 1998 - 2008, Continuum Concepts, LLC.
Phone: (214) 564-2608. Fax: (435) 304-1859. Email:
chris@continuumconcepts.com