Fred Jones
2/28/2002 10:02:00 PM
I've been trying to get the ODBC Data Provider to work with my ODBC Driver,
but I have run into a problem that is not consistent.
Using the ODBC Data Provider I create a connection to the DSN and open it. I
then create a new DataSet and ODBCDataAdapter. The query I issue is a simple
"select * from table". I use the ODBCDataAdapter to fill my DataSet with the
query results. And it works just fine.
I then Try the Exact same thing, but I point my DSN to a different Database,
and when I try to fill the DataSet I get the following Exception.
Microsoft.Data.Odbc.OdbcException: NO_DATA - no error information available.
at System.Data.Common.DbDataAdapter.FillErrorHandler(Exception e,
DataTable dataTable, Object[] dataValues)
at System.Data.Common.DbDataAdapter.FillLoadDataRowChuck(SchemaMapping
mapping, Int32 maxRecords)
at System.Data.Common.DbDataAdapter.FillFromReader(Object data, String
srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords,
DataColumn parentChapterColumn, object parentChapterValue)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable,
IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
at System.Data.Common.DbDataAdapter.Fill(Object data, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior
behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataset, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataset, Int32
startRecord, Int32 maxRecords, String srcTable)
Also I have found that sometime it will read a few records into the DataSet
Table before it throws the exception.
Has anyone got any ideas ?
Thanks,
Fred Jones