MaxBici
4/21/2006 4:15:00 PM
Hi all,
How can I get a list of table of a DB linked
with ODBC.NET with DSN driver ?
OdbcConnection cn;
OdbcCommand cmd;
string MyString;
MyString="Select * from Customers";
cn= new OdbcConnection("dsn=myDSN");
cmd=new OdbcCommand(MyString,cn);
cn.Open();
MessageBox.Show("Connected");
cn.Close();
}
with this example MyString is linked to table Customers,
nut I need to get a list of Table to populate a comboBox
Thanks in advance
Max