Re: execute problem when upgraded to 4.1
I don't know if my problem is related, but I also been receiving exception errors
when calling ExecuteScalar():
OdbcConnection myConnection = new OdbcConnection();
myConnection = new OdbcConnection( myConnString );
myConnection.Open();
OdbcCommand cmd = new OdbcCommand( "SELECT COUNT(*) FROM " + TableName + " " + "WHERE ID=?", myConnection );
cmd.Parameters.Add( "?", OdbcType.VarChar, 40, "ID" ).Value = txtid;
// EXCEPTION ERROR HAPPENS HERE
int total_records = (int)cmd.ExecuteScalar();
myConnection.Close();
This did not ever happen before.
Subject
Views
Written By
Posted
4773
March 17, 2005 03:55AM
Re: execute problem when upgraded to 4.1
2684
October 06, 2005 11:26PM
2683
October 06, 2005 11:56PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.