Problem with Odbc and DB2

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi..
My trouble is the follow
I have a connection with System.Data.Odbc to DB Db2 v6.1
I called a storedp rocedure, this retrun 2 resultset, i fill a dataSet with a OdbcDataAdapter created with a OdbcCommand and the name storedprocedure and builded sentences with OdbcCommand Bulider.
When i execute the DataAdapter.Fill(dataSet) i got the dataset with a table but this raise a error that is:
System.Object
"{"Referencia a objeto no establecida como instancia de un objeto." }"

Thx by your help.
 
The Microsoft ODBC Driver for DB2 is not supported for use with the Microsoft ODBC .NET Data Provider. When accessing DB2 from ADO.NET, use the Microsoft OLE DB Provider for DB2 in conjunction with the Microsoft OLE DB .NET Data Provider

http://msdn.microsoft.com/library/d...tions_using_the_odbc_driver_for_db2_oledb.asp

----- Gogue Magallanes wrote: -----

Hi..
My trouble is the follow
I have a connection with System.Data.Odbc to DB Db2 v6.1
I called a storedp rocedure, this retrun 2 resultset, i fill a dataSet with a OdbcDataAdapter created with a OdbcCommand and the name storedprocedure and builded sentences with OdbcCommand Bulider.
When i execute the DataAdapter.Fill(dataSet) i got the dataset with a table but this raise a error that is:
System.Object
"{"Referencia a objeto no establecida como instancia de un objeto." }"

Thx by your help.
 
Back
Top