I just trie out the MySQLDirect .NET Provider 2.70 and there are many converting problems. To date I use the ByteFX-DataProvider and the new .NET-Connector 1.04 from mySQL.com. These providers works great. Here are a view questions about using your provider:
1:
Using the MySQLDirect .NET-Provider in my application does not work, e. g. with the following ConnectionString. The other Data-Providers do so... Is there any Idea, why...
Code: Select all
DatabaseConnectString = "Persist Security Info=False;Database='';Data Source=127.0.0.1;Connect Timeout=30;user id=root;password='';"
Starting the VS.NET IDE provides an ErrorMessage "Unable to find view menu". I´ve found the thread about this issue and get the anwser, that this error doesn´t match. I hope you are rigth!!!!
3:
Another problem is using parameters. My following Code works great so far...
Code: Select all
/// Query.Builder
result = "";
result += "INSERT INTO adrKontakt ( ";
result += "AdressID, BenutzerID, Suchbegriff, Anrede, Titel, Vorname, Name, Telefon, ";
result += "Telefax, Mobil, eMail, Briefanrede ";
result += ") VALUES ( ";
result += "@a01, @a02, @a03, @a04, @a05, @a06, @a07, @a08, @a09, @a10, @a11, @a12";
result += " )";
Code: Select all
MySqlParameter a01 = new MySqlParameter("@a01", MySqlType.Text);
MySqlParameter a02 = new MySqlParameter("@a02", MySqlType.Text);
MySqlParameter a03 = new MySqlParameter("@a03", MySqlType.Text);
...
...
a01.Value = Public.MyFocusID;
a02.Value = Public.MyUserID;
a03.Value = this.textBox2.Text + ", " + this.textBox1.Text;
...
...
myCmd.Parameters.Add(a01);
myCmd.Parameters.Add(a02);
myCmd.Parameters.Add(a03);
...
myCmd.CommandText = GetCommand(1);
myCmd.ExecuteNonQuery();
thx for any answer
jlo - germany