NO_DATA error

  • Thread starter Thread starter Krish
  • Start date Start date
K

Krish

Hi,

The sql returns value since i select primary key (cannot be null), but when
i try to bind with combo box i get following error.. i cant see data. Iam
using ODBC connection from asp.net to talk to DB2 database. Any help gurus

System.Data.Odbc.OdbcException: NO_DATA - no error information available

Thanks,
Krish
 
OdbcDataReader ddDR2 = null;
OdbcConnection cn = new OdbcConnection("DSN=TeacherCert;UID=dexkme;
PWD=viji123;DBQ=db2t");
OdbcCommand ddSqlCommand2 = new OdbcCommand ("SELECT cd_district FROM
depdb.km_zip_district", cn);
cn.Open();
ddDR2 = ddSqlCommand2.ExecuteReader(CommandBehavior.CloseConnection);
cboMajor.DataSource = ddDR2;
cboMajor.DataTextField = "cd_district";
cboMajor.DataValueField = "cd_district";
cboMajor.DataBind();
ddDR2.Close();

I have already applying the info mentioned in microsoft kb article. It didnt
help
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q319243
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top