473,320 Members | 1,572 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,320 software developers and data experts.

Collect the data

Hi,

Under the current scenario I am fetching around 700 records in an
application and keeping the recordset open. The reason being the user wants
to navigate through the records anytime. I am not sure if it is the best
practice. Also, I have a problem. When I add a record I have to refresh
the list view control. In order to do that i have retreive the whole
recordset again.

Is there an effective way around doing so?

Please guide.

Thanks
Vivek
Nov 17 '05 #1
2 1397
Hi,
I am not sure if you're referring to "dataset" as recordset. In .NET,
dataset is one of the ways you can get the data in-memory and navigable.
Whenever user makes update to the dataset, each data row's state is
maintained. So, you can use dataset to have your own copy of data, modify
that data as necessary before you make the permanent update to the database.
By using the dataset, you can also modify your user presentation without
fetching the data from database each time of update. I hope I get what you
want. If not, you can post your question more specific. Thank you.

Rgds,
Noble Lesmana

"Vivek Sharma" wrote:
Hi,

Under the current scenario I am fetching around 700 records in an
application and keeping the recordset open. The reason being the user wants
to navigate through the records anytime. I am not sure if it is the best
practice. Also, I have a problem. When I add a record I have to refresh
the list view control. In order to do that i have retreive the whole
recordset again.

Is there an effective way around doing so?

Please guide.

Thanks
Vivek

Nov 17 '05 #2
Thanks Noble

I think I got the answer to my question.

"Noble Lesmana" <No**********@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
Hi,
I am not sure if you're referring to "dataset" as recordset. In .NET,
dataset is one of the ways you can get the data in-memory and navigable.
Whenever user makes update to the dataset, each data row's state is
maintained. So, you can use dataset to have your own copy of data, modify
that data as necessary before you make the permanent update to the database. By using the dataset, you can also modify your user presentation without
fetching the data from database each time of update. I hope I get what you
want. If not, you can post your question more specific. Thank you.

Rgds,
Noble Lesmana

"Vivek Sharma" wrote:
Hi,

Under the current scenario I am fetching around 700 records in an
application and keeping the recordset open. The reason being the user wants to navigate through the records anytime. I am not sure if it is the best
practice. Also, I have a problem. When I add a record I have to refresh the list view control. In order to do that i have retreive the whole
recordset again.

Is there an effective way around doing so?

Please guide.

Thanks
Vivek

Nov 17 '05 #3

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

Similar topics

0
by: nick_faye | last post by:
Hi, I hope somebody can help me. I am collecting data from different external ms access database on my VB programming. I am using the SQL command as shown below: While strPaths(iCtr) <> ""...
16
by: LP | last post by:
Hi, Considering code below. Will it make GC to actually collect. One application creates new instances of a class from 3rd party assembly in a loop (it has to). That class doesn't have .Dispose or...
9
by: Frank Rizzo | last post by:
I understand the basic premise: when the object is out of scope or has been set to null (given that there are no funky finalizers), executing GC.Collect will clean up your resources. So I have...
11
by: Antonio | last post by:
Hello, here is what I am doing. 1) user accesses web page and clicks button to build report 2) web page accesses web service whose data type is DataSet (public DataSet methodname()...) 3) web...
5
by: Mrinal Kamboj | last post by:
Hi , Any pointers when it's absolute necessary to use it . Does it has a blocking effect on the code , as GC per se is undeterministic . what if GC.collect is followed in next line by...
6
by: Senthil | last post by:
Hi All We are having a VB application on SQL. But we need to collect information from persons who will be offline to verify data and insert new data. Generally they will be entering the data in...
3
by: Mikegtr | last post by:
I need to collect and send data from a rs232 device- it is a simple temperature controller. I need to be able to collect actual temperature ,store the result in database (mysql) and show it in...
48
by: Ward Bekker | last post by:
Hi, I'm wondering if the GC.Collect method really collects all objects possible objects? Or is this still a "smart" process sometimes keeping objects alive even if they can be garbage collected?...
4
by: svgeorge | last post by:
I NEED TO COLLECT FROM THE GRIDVIEW(DATASELECTED) IN TO A TABLE(SelectedPayment) -------------------------------------------------------------------------------- How TO COLLECT THE ROWS...
3
by: oravm | last post by:
Hi, I re-write a query and used bulk collect to improve the performance of the batch process. The query below has NO compile error but when execute query there is error 'ORA-01403: no data...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.