[Mono-list] About odbc

A Rafael D Teixeira rafael.teixeirabr@terra.com.br
Mon, 30 Aug 2004 10:40:15 -0300


Well that is really a question about ADO.NET's *Command family of
classes.

ExecuteScalar - executes your query and returns just value for the
first-column from the first row returned. It is good for things like
"SELECT Max(Amount) FROM FinancialData WHERE ...".

ExecuteReader - Returns a DataReader that you can use to iterate over
the returned row, getting values for any columns returned.

Hope it helps,

On Mon, 2004-08-30 at 08:38, lamyae Benabdeljalil wrote:
> Please , i want to know the difference in ODBC between ExecuteScalar()
> and ExecuteReader()
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> Esta mensagem foi verificada pelo E-mail Protegido Terra.
> Scan engine: VirusScan / Atualizado em 25/08/2004 / Verso: 1.5.2
> Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/
> 
> E-mail classificado pelo Identificador de Spam Inteligente Terra.
> Para alterar a categoria classificada, visite
> http://www.terra.com.br/centralunificada/emailprotegido/imail/imail.cgi?+_u=rafael.teixeirabr&_l=1093866257.151017.27709.chui.terra.com.br
-- 
Rafael "Monoman" Teixeira 
Mono Hacker since 16 Jul 2001 - http://www.go-mono.org/
Mono Brasil Founding Member - http://monobrasil.redesolbrasil.org/
English Blog: http://monoblog.blogspot.com/
Brazilian Portuguese Blog: http://monoblog.weblogger.terra.com.br/