473,396 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

datareader question

I should know the answer to this but i guess i have to ask: Is there a way to
reset a data reader to the begining? I figure it's a no, but want to be sure
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
Feb 16 '07 #1
6 1506
Good afternoon,

You're right, data reader is forward only type reader, you can olny move to
next row or next result set.
--
Milosz
"WebBuilder451" wrote:
I should know the answer to this but i guess i have to ask: Is there a way to
reset a data reader to the begining? I figure it's a no, but want to be sure
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
Feb 16 '07 #2
was hoping for some kind of hack of a bug that could be exploited.
:-) Thanks

--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
"Milosz Skalecki [MCAD]" wrote:
Good afternoon,

You're right, data reader is forward only type reader, you can olny move to
next row or next result set.
--
Milosz
"WebBuilder451" wrote:
I should know the answer to this but i guess i have to ask: Is there a way to
reset a data reader to the begining? I figure it's a no, but want to be sure
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
Feb 16 '07 #3
i can't aford the performance issues with using an xml dataset.
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
"Mark Rae" wrote:
"WebBuilder451" <We***********@discussions.microsoft.comwrote in message
news:BF**********************************@microsof t.com...
I should know the answer to this but i guess i have to ask: Is there a way
to
reset a data reader to the begining? I figure it's a no, but want to be
sure

You're correct - if you need to do this, you're using the wrong ADO.NET
object...
Feb 16 '07 #4
"WebBuilder451" <We***********@discussions.microsoft.comwrote in message
news:BF**********************************@microsof t.com...
>I should know the answer to this but i guess i have to ask: Is there a way
to
reset a data reader to the begining? I figure it's a no, but want to be
sure
You're correct - if you need to do this, you're using the wrong ADO.NET
object...
Feb 16 '07 #5
"WebBuilder451" <We***********@discussions.microsoft.comwrote in message
news:C8**********************************@microsof t.com...
>i can't aford the performance issues with using an xml dataset.
???

There are other ADO.NET objects besides XML DataSets... :-)

Have you considerd a "standard" DataSet, or DataTable...?
Feb 16 '07 #6
You can use a DataTable. The TableAdapter actually uses DataReader "under the
hood" to populate the DataTable, then the reader is closed leaving you with a
very nice disconnected DataTable. The slight additional overhead should be
virtually unnoticeable.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"WebBuilder451" wrote:
i can't aford the performance issues with using an xml dataset.
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
"Mark Rae" wrote:
"WebBuilder451" <We***********@discussions.microsoft.comwrote in message
news:BF**********************************@microsof t.com...
>I should know the answer to this but i guess i have to ask: Is there a way
>to
reset a data reader to the begining? I figure it's a no, but want to be
sure
You're correct - if you need to do this, you're using the wrong ADO.NET
object...

Feb 16 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Jacko | last post by:
Hi guys, Say I made a SELECT statement to my sql DB that would return 50 rows that I will use a sqldatareader to access. Instead of iterating through each and every row of the datareader, I'd...
12
by: Thomas Scheiderich | last post by:
I have 2 dropdowns that are exactly the same and I don't want to re-read for each. Is there a way to do something like below where I read the data, bind to depCity1 and then bind to destCity2. ...
20
by: Mark | last post by:
Hi all, quick question , a DataView is memory resident "view" of data in a data table therefore once populated you can close the connection to the database. Garbage collection can then be used to...
6
by: Kalim Julia | last post by:
Is it possible to open more than 1 datareader / dataadapter on one connection ? Is it possible to duplicate / clone connection ?
7
by: Varangian | last post by:
Hi all, the question I want to ask if the conversion of a DataReader to a Table looping through the DataReader is better than using the Fill Method of the DataAdapter... I'm asking because...
6
by: dejavue82 | last post by:
This is the result of a JOINed query: question answer 1 a1 1 a2 1 a3 1 a4 2 a1 2 a2
20
by: fniles | last post by:
I am using VB.NET 2003, SQL 2000, and SqlDataReader. As I read data from tblA, I want to populate tblB. I use SQLDataReader for both tables. I do not use thread. When I ExecuteReader on tblB, I...
4
by: Piotrekk | last post by:
I have a question related to DataReader Suppose a lot of the data is being retrieved from database. To make use of the advantage of datareader over dataset this data should be transferred in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.