PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Scalar vs Reader Exec Method

Reply

Scalar vs Reader Exec Method

 
Thread Tools Rate Thread
Old 06-05-2008, 10:50 PM   #1
John
Guest
 
Posts: n/a
Default Scalar vs Reader Exec Method


Hi

Is there any advantage of using scalar execution method for data adapter if
the result is going to be a single record?

Thanks

Regards


  Reply With Quote
Old 07-05-2008, 12:14 AM   #2
Scott M.
Guest
 
Posts: n/a
Default Re: Scalar vs Reader Exec Method

Scalar only gives you back the first field from the first record, so if you
want the whole record, don't use scalar.

Scalar is generally good for when you are calling a user function in the DB
to get back a single result.

-Scott


"John" <info@nospam.infovis.co.uk> wrote in message
news:O6C3tM8rIHA.4376@TK2MSFTNGP06.phx.gbl...
> Hi
>
> Is there any advantage of using scalar execution method for data adapter
> if the result is going to be a single record?
>
> Thanks
>
> Regards
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off