-
February 6th, 2009, 02:07 AM
#1
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.
-
February 6th, 2009, 03:19 AM
#2
Re: MySqlConnection class
-
February 6th, 2009, 09:48 PM
#3
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.
-
February 9th, 2009, 01:31 PM
#4
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 03:50 PM.
Please rate my post if it was helpful for you. Java, 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|