crash when wrong connection string...
Hello,
I'm writing a little application using the functions:
MySqlConnection *conDatabase = new MySqlConnection(S"Data Source=localhost;Persist Security Info=yes");
MySqlCommand *cmdDatabase = new MySqlCommand(S"CREATE DATABASE CarRental1;", conDatabase);
etc...
However, when I can't connect, because eg the server isn't running, the hostname/username/password is wrong, the application crashes.
I want it to be more elegant.
(so, a nice warning stating that there was something wrong).
I red in the Help file, but didn't found any return values for any of the functions.
Can anyone give some sample code how I can do what I explained above?
Thanks...
Subject
Written By
Posted
crash when wrong connection string...
December 29, 2006 05:59PM
December 30, 2006 09:12AM
December 30, 2006 10:12AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.