adrianjohnson
Programmer
Hello,
I'm trying to retrieve a list of tables on an Informix DB in VB.NET. I've got an odbc connection which works, but when I run this code I get a "System error":
I am then trying to populate a list box with the names of the tables.
The system connects ok to the data source (I have error checking in place etc.), but I get the error message when I get to the bit shown above.
Where am I going wrong?
Thanks,
Adrian Johnson
Adrian Johnson
Assystance - i.t. solutions
I'm trying to retrieve a list of tables on an Informix DB in VB.NET. I've got an odbc connection which works, but when I run this code I get a "System error":
Code:
Dim da As New Odbc.OdbcDataAdapter("SELECT * FROM Information_Schema.Tables where Table_Type = 'BASE TABLE'", conEf)
Dim dt As New DataTable
da.Fill(dt)
Dim dr As DataRow
I am then trying to populate a list box with the names of the tables.
The system connects ok to the data source (I have error checking in place etc.), but I get the error message when I get to the bit shown above.
Where am I going wrong?
Thanks,
Adrian Johnson
Adrian Johnson
Assystance - i.t. solutions