N
nathan.gomez
Thanks for your time.
I've been trying to get a list of databases available on a mySQL server
(local) using the OdbcConnection.GetSchema() function. Thus far I have
only been able to get "views". Can anyone help me out?
code:
OdbcConnection c = new OdbcConnection();
c.ConncetionString = conString; // the connection works fine, so I have
not bothered to add it
c.open();
DataTable t = c.GetSchema(); // At this point I have seen people use
the "Databases"
// arg but it tells me
that there is no such collection.
How can I get the list of available databases? I know that it can't be
all that difficult, but I just can't seem to figure it out.
Using .NET 2.0 and SharpDevelop (I also have VS 2005 and I could use a
SQL server if need be, but I wanted to give mySQL and SharpDevelop a
try)
I've been trying to get a list of databases available on a mySQL server
(local) using the OdbcConnection.GetSchema() function. Thus far I have
only been able to get "views". Can anyone help me out?
code:
OdbcConnection c = new OdbcConnection();
c.ConncetionString = conString; // the connection works fine, so I have
not bothered to add it
c.open();
DataTable t = c.GetSchema(); // At this point I have seen people use
the "Databases"
// arg but it tells me
that there is no such collection.
How can I get the list of available databases? I know that it can't be
all that difficult, but I just can't seem to figure it out.
Using .NET 2.0 and SharpDevelop (I also have VS 2005 and I could use a
SQL server if need be, but I wanted to give mySQL and SharpDevelop a
try)