Need Help With MySQLDriverCS
When I try to fill a DataAdapter I Get the following error " wrong querry. No database selected" Can anyone give me an idea of what I am doing wrong?
here is what I am trying to do:
// Generate a Connection and open it
myConnection = new MySQLConnection(ConnStr);
myConnection.Open();
// fill the data set
myDataSet = new DataSet();
MyDataSet.Tables.Add("tblcompany");
string sqlstr = "SELECT * FROM tblcompany";
myDataAdapter = new MySQLDataAdapter();
myDataAdapter.SelectCommand = new MySQLCommand(sqlstr, myConnection);
myDataAdapter.FillSchema(myDataSet, SchemaType.Mapped);
myDataAdapter.Fill(myDataSet);
Subject
Written By
Posted
Need Help With MySQLDriverCS
February 07, 2005 11:17PM
February 08, 2005 08:22AM
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.