<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" version="2.0">
  <channel>
    <title>Continuum Drift - MySQL</title>
    <link>http://www.continuumconcepts.com/Blog/</link>
    <description>Continuum Concepts Dev Log</description>
    <language>en-us</language>
    <copyright>Continuum Concepts, LLC</copyright>
    <lastBuildDate>Wed, 20 May 2009 06:02:25 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.2.8279.16125</generator>
    <managingEditor>chris@continuumconcepts.com</managingEditor>
    <webMaster>chris@continuumconcepts.com</webMaster>
    <item>
      <trackback:ping>http://www.continuumconcepts.com/Blog/Trackback.aspx?guid=e6a4817e-9ef7-4fc1-9d8f-56c4eb33133a</trackback:ping>
      <pingback:server>http://www.continuumconcepts.com/Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.continuumconcepts.com/Blog/PermaLink,guid,e6a4817e-9ef7-4fc1-9d8f-56c4eb33133a.aspx</pingback:target>
      <dc:creator>Chris</dc:creator>
      <wfw:comment>http://www.continuumconcepts.com/Blog/CommentView,guid,e6a4817e-9ef7-4fc1-9d8f-56c4eb33133a.aspx</wfw:comment>
      <wfw:commentRss>http://www.continuumconcepts.com/Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=e6a4817e-9ef7-4fc1-9d8f-56c4eb33133a</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">I noticed that my web app, which makes
anywhere from one to many MySQL connections per page was running slowly on my new
Windows 7 RC laptop. I used dotTrace to compare the page execution to that of my desktop
(which runs the app very quickly) and noticed that it was all the MySQL connections
that were taking 10x to 100x as long to execute on the laptop.<br /><br />
After a bunch of troubleshooting I finally determined what was causing the performance
problem. It was Nod32 4.0. I couldn't just disable Nod32, though. I had to completely
uninstall it to cure the MySQL ODBC slowdown!<br /><br />
With Nod32 4.0 installed, some pages were taking 13 seconds to execute.<br />
Without Nod32 4.0 installed, those same pages were taking less than a second to execute.<br /><br />
I observed this behavior on two systems:<br /><ol><li>
Dell Inspiron E1705 w/ Windows 7 RC x86<br /></li><li>
Dell Studio 16 XPS w/ Windows 7 RC x64 (happened with both 64-bit and 32-bit ODBC
drivers, and with both 3.51 and 5.1 versions of each)</li></ol>
Both systems have Windows 7 so this could be a problem only for Windows 7 users with
Nod32 4.0. Maybe it's fine with Vista or some other anti-virus application. I hope
this helps someone because it took me FOREVER to figure out it was Nod! I sent their
support an email explaining all this. Hopefully they will write back with some info.
Aside from this, which is a DEALBREAKER, I love Nod32 :(<br /><p></p><img width="0" height="0" src="http://www.continuumconcepts.com/Blog/aggbug.ashx?id=e6a4817e-9ef7-4fc1-9d8f-56c4eb33133a" /></body>
      <title>MySQL ODBC Slow - Caused by Nod32 4.0</title>
      <guid isPermaLink="false">http://www.continuumconcepts.com/Blog/PermaLink,guid,e6a4817e-9ef7-4fc1-9d8f-56c4eb33133a.aspx</guid>
      <link>http://www.continuumconcepts.com/Blog/2009/05/20/MySQLODBCSlowCausedByNod3240.aspx</link>
      <pubDate>Wed, 20 May 2009 06:02:25 GMT</pubDate>
      <description>I noticed that my web app, which makes anywhere from one to many MySQL connections per page was running slowly on my new Windows 7 RC laptop. I used dotTrace to compare the page execution to that of my desktop (which runs the app very quickly) and noticed that it was all the MySQL connections that were taking 10x to 100x as long to execute on the laptop.&lt;br&gt;
&lt;br&gt;
After a bunch of troubleshooting I finally determined what was causing the performance
problem. It was Nod32 4.0. I couldn't just disable Nod32, though. I had to completely
uninstall it to cure the MySQL ODBC slowdown!&lt;br&gt;
&lt;br&gt;
With Nod32 4.0 installed, some pages were taking 13 seconds to execute.&lt;br&gt;
Without Nod32 4.0 installed, those same pages were taking less than a second to execute.&lt;br&gt;
&lt;br&gt;
I observed this behavior on two systems:&lt;br&gt;
&lt;ol&gt;
&lt;li&gt;
Dell Inspiron E1705 w/ Windows 7 RC x86&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Dell Studio 16 XPS w/ Windows 7 RC x64 (happened with both 64-bit and 32-bit ODBC
drivers, and with both 3.51 and 5.1 versions of each)&lt;/li&gt;
&lt;/ol&gt;
Both systems have Windows 7 so this could be a problem only for Windows 7 users with
Nod32 4.0. Maybe it's fine with Vista or some other anti-virus application. I hope
this helps someone because it took me FOREVER to figure out it was Nod! I sent their
support an email explaining all this. Hopefully they will write back with some info.
Aside from this, which is a DEALBREAKER, I love Nod32 :(&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.continuumconcepts.com/Blog/aggbug.ashx?id=e6a4817e-9ef7-4fc1-9d8f-56c4eb33133a" /&gt;</description>
      <comments>http://www.continuumconcepts.com/Blog/CommentView,guid,e6a4817e-9ef7-4fc1-9d8f-56c4eb33133a.aspx</comments>
      <category>Development</category>
      <category>MySQL</category>
      <category>Windows 7</category>
    </item>
    <item>
      <trackback:ping>http://www.continuumconcepts.com/Blog/Trackback.aspx?guid=7e26dec8-3a76-4819-83de-d15dd278198e</trackback:ping>
      <pingback:server>http://www.continuumconcepts.com/Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.continuumconcepts.com/Blog/PermaLink,guid,7e26dec8-3a76-4819-83de-d15dd278198e.aspx</pingback:target>
      <dc:creator>Chris</dc:creator>
      <wfw:comment>http://www.continuumconcepts.com/Blog/CommentView,guid,7e26dec8-3a76-4819-83de-d15dd278198e.aspx</wfw:comment>
      <wfw:commentRss>http://www.continuumconcepts.com/Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=7e26dec8-3a76-4819-83de-d15dd278198e</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">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<br /><ol><li>
FLAG_FIELD_LENGTH: "Do not Optimize Column Width", and</li><li>
FLAG_FOUND_ROWS: "Return Matching Rows</li></ol>
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 <a href="http://dev.mysql.com/doc/refman/5.0/en/connector-odbc-configuration-connection-parameters.html">MySQL
5.0 Reference Manual</a>.<br /><br />
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.<br /><p></p><img width="0" height="0" src="http://www.continuumconcepts.com/Blog/aggbug.ashx?id=7e26dec8-3a76-4819-83de-d15dd278198e" /></body>
      <title>MySQL option=3 in Your ODBC Connection String...What does it do?</title>
      <guid isPermaLink="false">http://www.continuumconcepts.com/Blog/PermaLink,guid,7e26dec8-3a76-4819-83de-d15dd278198e.aspx</guid>
      <link>http://www.continuumconcepts.com/Blog/2009/03/07/MySQLOption3InYourODBCConnectionStringWhatDoesItDo.aspx</link>
      <pubDate>Sat, 07 Mar 2009 00:00:23 GMT</pubDate>
      <description>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&lt;br&gt;
&lt;ol&gt;
&lt;li&gt;
FLAG_FIELD_LENGTH: "Do not Optimize Column Width", and&lt;/li&gt;
&lt;li&gt;
FLAG_FOUND_ROWS: "Return Matching Rows&lt;/li&gt;
&lt;/ol&gt;
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 &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/connector-odbc-configuration-connection-parameters.html"&gt;MySQL
5.0 Reference Manual&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
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.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.continuumconcepts.com/Blog/aggbug.ashx?id=7e26dec8-3a76-4819-83de-d15dd278198e" /&gt;</description>
      <comments>http://www.continuumconcepts.com/Blog/CommentView,guid,7e26dec8-3a76-4819-83de-d15dd278198e.aspx</comments>
      <category>MySQL</category>
    </item>
    <item>
      <trackback:ping>http://www.continuumconcepts.com/Blog/Trackback.aspx?guid=cbf8072c-bf4f-477b-a0ef-92757a1ebd5c</trackback:ping>
      <pingback:server>http://www.continuumconcepts.com/Blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.continuumconcepts.com/Blog/PermaLink,guid,cbf8072c-bf4f-477b-a0ef-92757a1ebd5c.aspx</pingback:target>
      <dc:creator>Chris</dc:creator>
      <wfw:comment>http://www.continuumconcepts.com/Blog/CommentView,guid,cbf8072c-bf4f-477b-a0ef-92757a1ebd5c.aspx</wfw:comment>
      <wfw:commentRss>http://www.continuumconcepts.com/Blog/SyndicationService.asmx/GetEntryCommentsRss?guid=cbf8072c-bf4f-477b-a0ef-92757a1ebd5c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">If you've got the Enterprise Library installed
and already know how to connect to SQL Server databases, connecting to MySQL databases
is not any harder.<br /><br />
One way to do it is to use ODBC. This is what I did:<br /><ol><li>
Go to MySQL.com and download the latest MySQL ODBC connector. As I write this it's
5.1.5. I used the 64-bit version, as I have 64-bit Vista.<br /></li><li>
Install the ODBC Connector. I chose to use the no-installer version. I just unzipped
it and ran Install.bat at an administrator's command prompt. The MSI version probably
works fine, but I did it this way back when I installed the 3.51 connector.<br /></li><li>
Verify the installation by opening your ODBC control panel and checking the Drivers
tab. You should see the MySQL ODBC 5.1 Driver listed there. It seems to even co-exist
peacefully with the older 3.51 version if you already have that. Additionally it coexists
peacefully with the .NET connector if that is installed too.</li><li>
At this point you will be doing what you've done to connect to a SQL Server database.
All you need to know is what to use for a connection string.</li><li>
Here's what mine looks like:<br />
&lt;add name="MySqlDatabaseTest" connectionString="server=myservername;database=mydbname;uid=myusername;pwd=mypassword;driver={MySQL
ODBC 5.1 Driver};option=3;" providerName="System.Data.Odbc" /&gt;</li><li>
Of course you can set "name" to whatever you want.</li><li>
If this is your only database, you can set it up as the defaultDatabase like this:
&lt;dataConfiguration defaultDatabase="MySqlDatabaseTest"/&gt;</li><li>
Access your data in your code like you always do! Here's a plain text sql example:</li></ol><pre><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">public</span> List&lt;Contact&gt;
Contact_SelectAll()<br />
{<br />
    <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">string</span> sql <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">string</span>.Format(<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">@"<br />
        select<br />
            *<br />
        from<br />
            Contact<br />
    "</span>);<br /><br />
    List&lt;Contact&gt; contactList <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">new</span> List&lt;Contact&gt;();<br />
    Database db <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span> DatabaseFactory.CreateDatabase(<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"MySqlDatabaseTest"</span>);<br />
    DbCommand dbCommand <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span> db.GetSqlStringCommand(sql);<br />
    <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">using</span> (IDataReader
dataReader <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span> db.ExecuteReader(dbCommand))<br />
    {<br />
        <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">while</span> (dataReader.Read())<br />
        {<br />
            Contact contact <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">new</span> Contact();<br />
            contact.ID <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span> (<span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">int</span>)
dataReader[<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"ContactID"</span>];<br />
            contact.FirstName <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span> dataReader[<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"ContactFName"</span>].ToString();<br />
            contact.LastName <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span> dataReader[<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"ContactLName"</span>].ToString();<br />
            contactList.Add(contact);<br />
        }<br />
    }<br /><br />
    <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">return</span></span><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">contactList</span><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">;<br />
}<br /></span></pre>Another way to do it is to build and use a MySql provider. <a href="http://www.codeproject.com/KB/database/MySql_with_Ent_Lib.aspx">This
guy did that</a>.<br />
I learned how to do this by adapting <a href="http://davidhayden.com/blog/dave/archive/2007/01/28/EnterpriseLibraryDAABMicrosoftAccess2007.aspx">these
instructions</a> for connecting to Access.<br /><a href="http://www.connectionstrings.com/mysql">Oh, and here are some more MySql
Connection String samples</a>.<br /><br /><p></p><img width="0" height="0" src="http://www.continuumconcepts.com/Blog/aggbug.ashx?id=cbf8072c-bf4f-477b-a0ef-92757a1ebd5c" /></body>
      <title>Connect to MySQL Databases with the Database Application Block (DAAB) in the Enterprise Library (Works for Access too!)</title>
      <guid isPermaLink="false">http://www.continuumconcepts.com/Blog/PermaLink,guid,cbf8072c-bf4f-477b-a0ef-92757a1ebd5c.aspx</guid>
      <link>http://www.continuumconcepts.com/Blog/2009/02/20/ConnectToMySQLDatabasesWithTheDatabaseApplicationBlockDAABInTheEnterpriseLibraryWorksForAccessToo.aspx</link>
      <pubDate>Fri, 20 Feb 2009 07:00:42 GMT</pubDate>
      <description>If you've got the Enterprise Library installed and already know how to connect to SQL Server databases, connecting to MySQL databases is not any harder.&lt;br&gt;
&lt;br&gt;
One way to do it is to use ODBC. This is what I did:&lt;br&gt;
&lt;ol&gt;
&lt;li&gt;
Go to MySQL.com and download the latest MySQL ODBC connector. As I write this it's
5.1.5. I used the 64-bit version, as I have 64-bit Vista.&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Install the ODBC Connector. I chose to use the no-installer version. I just unzipped
it and ran Install.bat at an administrator's command prompt. The MSI version probably
works fine, but I did it this way back when I installed the 3.51 connector.&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Verify the installation by opening your ODBC control panel and checking the Drivers
tab. You should see the MySQL ODBC 5.1 Driver listed there. It seems to even co-exist
peacefully with the older 3.51 version if you already have that. Additionally it coexists
peacefully with the .NET connector if that is installed too.&lt;/li&gt;
&lt;li&gt;
At this point you will be doing what you've done to connect to a SQL Server database.
All you need to know is what to use for a connection string.&lt;/li&gt;
&lt;li&gt;
Here's what mine looks like:&lt;br&gt;
&amp;lt;add name="MySqlDatabaseTest" connectionString="server=myservername;database=mydbname;uid=myusername;pwd=mypassword;driver={MySQL
ODBC 5.1 Driver};option=3;" providerName="System.Data.Odbc" /&amp;gt;&lt;/li&gt;
&lt;li&gt;
Of course you can set "name" to whatever you want.&lt;/li&gt;
&lt;li&gt;
If this is your only database, you can set it up as the defaultDatabase like this:
&amp;lt;dataConfiguration defaultDatabase="MySqlDatabaseTest"/&amp;gt;&lt;/li&gt;
&lt;li&gt;
Access your data in your code like you always do! Here's a plain text sql example:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;public&lt;/span&gt; List&amp;lt;Contact&amp;gt;
Contact_SelectAll()&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;string&lt;/span&gt; sql &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;string&lt;/span&gt;.Format(&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;@"&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;select&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;from&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Contact&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"&lt;/span&gt;);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;Contact&amp;gt; contactList &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;new&lt;/span&gt; List&amp;lt;Contact&amp;gt;();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Database db &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; DatabaseFactory.CreateDatabase(&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"MySqlDatabaseTest"&lt;/span&gt;);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DbCommand dbCommand &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; db.GetSqlStringCommand(sql);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;using&lt;/span&gt; (IDataReader
dataReader &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; db.ExecuteReader(dbCommand))&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;while&lt;/span&gt; (dataReader.Read())&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Contact contact &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;new&lt;/span&gt; Contact();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;contact.ID &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; (&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;int&lt;/span&gt;)
dataReader[&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"ContactID"&lt;/span&gt;];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;contact.FirstName &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; dataReader[&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"ContactFName"&lt;/span&gt;].ToString();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;contact.LastName &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; dataReader[&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"ContactLName"&lt;/span&gt;].ToString();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;contactList.Add(contact);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;return&lt;/span&gt; &lt;/span&gt;&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;contactList&lt;/span&gt;&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;;&lt;br&gt;
}&lt;br&gt;
&lt;/span&gt;&lt;/pre&gt;Another way to do it is to build and use a MySql provider. &lt;a href="http://www.codeproject.com/KB/database/MySql_with_Ent_Lib.aspx"&gt;This
guy did that&lt;/a&gt;.&lt;br&gt;
I learned how to do this by adapting &lt;a href="http://davidhayden.com/blog/dave/archive/2007/01/28/EnterpriseLibraryDAABMicrosoftAccess2007.aspx"&gt;these
instructions&lt;/a&gt; for connecting to Access.&lt;br&gt;
&lt;a href="http://www.connectionstrings.com/mysql"&gt;Oh, and here are some more MySql
Connection String samples&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.continuumconcepts.com/Blog/aggbug.ashx?id=cbf8072c-bf4f-477b-a0ef-92757a1ebd5c" /&gt;</description>
      <comments>http://www.continuumconcepts.com/Blog/CommentView,guid,cbf8072c-bf4f-477b-a0ef-92757a1ebd5c.aspx</comments>
      <category>Development</category>
      <category>MySQL</category>
    </item>
  </channel>
</rss>