Page 1 of 1

fill error!?

Posted: Thu 22 Sep 2005 00:39
by Guest
i was trying to fill a dataset, but here comes an unexpected exception while filling.

heres my code.

MySqlDataAdapter Myada = new MySqlDataAdapter("Select * from test",Mycon);
Myada.MissingSchemaAction = MissingSchemaAction.AddWithKey;

MySqlCommandBuilder myCommandBuilder = new CoreLab.MySql.MySqlCommandBuilder(Myada);

Myds = new DataSet();
try{
Myada.Fill(Myds);
}
catch(MySqlException e)
{
MessageBox.Show("fill failed!" + e.StackTrace);
return false;
}


no idea what happened.

Posted: Thu 22 Sep 2005 01:21
by Guest
PS: mysql version 4.1

Posted: Thu 22 Sep 2005 09:30
by Serious
Please specify full exception message, exception class and call stack.