Re: How does sql ExecuteReader() work?
- From: "William Vaughn" <billvaNoSPAM@xxxxxxxxx>
- Date: Thu, 16 Aug 2007 18:33:08 -0700
Incidentally, this is an ADO.NET question. Perhaps you might try that newsgroup...
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant, Dad, Grandpa
Microsoft MVP
INETA Speaker
www.betav.com
www.betav.com/blog/billva
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------
"Avenger" <Avenger@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:4DBAFD35-17BA-4BC6-9DE7-AC3426FD9F9D@xxxxxxxxxxxxxxxx
Hello,
I'd like to get a good general idea of how ExecuteReader works, behind
the scene. Obivously it executes what ever sql statement you passed in your
SqlCommand. But once that's done, is all the information passed back to your
application right away, or is the information taken one record at a time from
the database using the Read() command.
Does the database create a "temp memory" location where it holds this
request, and passes row by row back to the application with each Read(), or
does it shoot back in one shot the whole request back to your application,
and your SqlDataReader holds all the information, and the Read() simply let's
you handle each row one by one and do what ever you need to do with it.
Thanks for any help with this inquiry.
.
- Prev by Date: Re: Looking for code sample to inset master and detail typed recordset
- Next by Date: Closing recordset generates exception
- Previous by thread: Re: How does sql ExecuteReader() work?
- Next by thread: Re: Looking for code sample to inset master and detail typed recordset
- Index(es):
Relevant Pages
|