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

I solved my problem. I had to use System.Convert.ToInt32() to convert
the return value from ExecuteScalar into an integer, otherwise I get an
exception error.

int total_records = System.Convert.ToInt32( cmd.ExecuteScalar() );

I have no idea why this was necessary now. It worked perfectly before v4.1.

Options: ReplyQuote


Subject
Views
Written By
Posted
4773
March 17, 2005 03:55AM
Re: execute problem when upgraded to 4.1
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.