Re: execute problem when upgraded to 4.1
Posted by: JeffM JeffM
Date: October 06, 2005 11:26PM

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.

Options: ReplyQuote


Subject
Views
Written By
Posted
4766
March 17, 2005 03:55AM
Re: execute problem when upgraded to 4.1
2679
October 06, 2005 11:26PM


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.