Home > Microsoft .Net Development Tips > Microsoft SQL Server > The MySQLDirect .NET Data Provider
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

MICROSOFT SQL SERVER

The MySQLDirect .NET Data Provider


Ed Tittel
09.09.2003
Rating: -4.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


The secret to accessing databases from within the .NET environment lies in finding the right data provider. Although a generic OleDb provider is included with VS.NET, because it is indeed generic, it tends to offer only the plainest-vanilla, least powerful forms of data access and manipulation capabilities. To get access to database features specific to particular database engines, it's necessary to find a data provider that delivers access to those features. For the popular Open Source MySQL database, Core Lab's MySQLDirect .NET Data Provider is an attractive, highly functional, and inexpensive ($99) tool (the company also offers data providers for Oracle, PostgresSQL and SQL Server databases as well).

MySQLDirect .NET works just like the Microsoft OleDb and SQLServer data providers for VS.NET, and is built entirely around ActiveX Data Objects for the .NET Framework, or ADO.NET. Thus, the implementation also provides access to data in relational, XML, or application-specific forms. On the MySQL side, this product uses a native MySQL programming interface to provide direct, straightforward access to MySQL databases.

The structure and vernacular of building applications with this tool is simple and familiar. MySQLDirect .NET provides MySqlConnection objects to attach to MySQL databases, MySqlCommand for SQL commands and operations, MySqlDataReader to manipulate database results, and MySqlDataAdapter, which populates a DataSet and resolves updates with a target MySQL database. This makes it easy to recycle code written to the OleDb provider, in that you must add a reference to your specific project, add a Use statement for the MySQL provider namespace and replace old generic calls with new specific ones. This permits near-automatic translation of existing code, and makes it easy to write new code as well. The product also includes numerous other classes to customize commands, handle exceptions, monitor dynamic SQL execution, manage input, output, return value parameters for commands and more.

MySQLDirect .NET also permits direct access to and manipulation of database data, but also supports the ADO.NET DataSet for disconnected processing, and later reconciliation with a MySQL database if necessary. The code is lightweight, simple, and compact which permits ready access to MySQL capabilities without slowing things down.

To install the MySQLDirect .NET Data Provider, the .NET Framework must already be installed on the computer. Likewise, the MySQL client library (libmysql.dll) must also be available to the runtime environment. For all that, the tool is simple, powerful, and easy to use. Definitely worth a look-see.


Ed Tittel is a principal at LANWrights, Inc. a wholly-owned subsidiary of iLearning.com, where he writes and teaches on a variety of subjects, including markup languages, development tools, and IT certifications. Contact Ed via e-mail at etittel@lanw.com.


Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
SQL Server and .NET development
Microsoft releases new CTP of Oslo SDK
Perpetuum unveils database synchronizer for .NET 2.0
The CTE, the hierarchical query and SQL Server 2005
SQL Server 2005 recursive functions and the CTE
SQL Examiner Suite synchronizes data schema, sets
Book excerpt: ADO.NET and SQL Server 2005
DataDirect database drivers now support MySQL
Top .NET tips of 2007 (so far)
Addressing common SQL Server questions
Book Excerpt: The .NET Framework and SQL Server 2005

Microsoft SQL Server
Using the Visual Studio 2005 DataSet Designer to build a data access layer
The CTE, the hierarchical query and SQL Server 2005
SQL Server 2005 recursive functions and the CTE
Choose the right .NET data provider, optimize application performance
The fallacy of the data layer -- or, a new architectural model for software designs
Book excerpt: ADO.NET and SQL Server 2005
Addressing common SQL Server questions
Book Excerpt: The .NET Framework and SQL Server 2005
WinForms development using SQL Server 2005 and Visual Basic 2005
Configuring ASP.NET 2.0 apps to SQL Server 2005 databases

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts