logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Getting a single value from the database in C#: msg#00249

Subject: Re: Getting a single value from the database in C#
I tried it, and it says it cant convert and object and blá blá blá...

How can i convert it to an int value so i can check if it returned true or false?

Thanx for the quick reply.

On 4/27/06, Oleg Deribas <thisaddressisnotmine@xxxxxxxxxxxxxxxxxxxxx> wrote:
Hello,

Fabio Gomes said the following on 27.04.2006 20:44:

> I tryied with cmd.ExecuteNonQuery(), but it seens that it just returns
> the number of affected rows with a DELETE, UPDATE or INSERT, it aways
> returned -1 with my select.

Use cmd.ExecuteScalar()

--
Oleg



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

<Prev in Thread] Current Thread [Next in Thread>