MySqlConnection class
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: MySqlConnection class

  1. #1
    Join Date
    Jul 2007
    Posts
    609

    MySqlConnection class

    How do I perform queries with this class? None of the reference I've found shows this. It talks about transactions but not queries. Transactions look like queries but seem to be different.

    Also how do I do certain things like fetch row, etc? It seems very limited.

    Lastly, where can I find error handling examples, like making sure a query executes, the server is up, etc?

    Thanks in advance.
    http://www.uovalor.com :: Free UO Server

  2. #2
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    Re: MySqlConnection class

    Take a look here:
    http://dev.mysql.com/doc/refman/5.1/...gintransaction

    Look at the examples

  3. #3
    Join Date
    Jul 2007
    Posts
    609

    Re: MySqlConnection class

    Oh so it IS transactions? I read that exact doc but I thought those were for something else. I've never seen queries be called that before, thought they were something else.


    Also where can I find error handling for the actual connection? In that doc there is none that I can see. Ex: if password is wrong, it should return an error.
    http://www.uovalor.com :: Free UO Server

  4. #4
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: MySqlConnection class

    pseudo code:

    Code:
    try
    {
      if password incorrect then
      throw new Exception("password is incorrect");
    }
    catch (exception e)
    {
        MessageBox.Show(e.message);
    }
    Last edited by toraj58; February 9th, 2009 at 02:50 PM.
    Please rate my post if it was helpful for you.
    C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center