Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Reading one record

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bilal Esmael - 20 Mar 2008 10:47 GMT
Hi

I'm building an application that will read very big tables, so I want to
read the records one bye one.
I DON'T want reading all data and loading it to DataTable and reading from
DataTable, I want to read the records directly from database

Thanks
Mohammad Al-Ma'any - 24 Mar 2008 22:07 GMT
You can simply modify your "select" statement

i.e
rs.open "Select Name, Age, Address from Table1"
   while not rs.EOF
       msgbox rs(1)
       rs.movenext
   wend
rs.close

hope that helps ya

> Hi
>
[quoted text clipped - 4 lines]
>
> Thanks
Sylvain - 24 Mar 2008 23:40 GMT
Mohammad Al-Ma'any wrote on 24/03/2008 22:07:

>> I'm building an application that will read very big tables, so I

what is "big" ? more than 100.000 records ?

for small table (about 10k records) getting all records in one request
is still the best solution.

>> want to read the records one bye one. I DON'T want reading all data
>> and loading it to DataTable and reading from DataTable, I want to

did you mean to transfer all response at once ?

>> read the records directly from database

did you mean you want to lock the base and perform indicidual requests?

I hope it's a single-user, local, base !

> You can simply modify your "select" statement
>
> i.e rs.open "Select Name, Age, Address from Table1" while not rs.EOF
> msgbox rs(1) rs.movenext wend rs.close

what kind of language is it ?

Sylvain.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.