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

Populate, save, repopulate same data set later

I need to populate a table with information then in a seperate utility,
in the same application, pull that data using the same criteria that
was first used and update some values, unique to an id, then save it,
also adding any rows that did not exist before. The user may exit the
application between using these utilities, but they may also move from
one utility to the next without exiting. Im sure I would start with
populating the data in a DataTable, save the DataTable to the database,
and pull the data into a new DataTable. Assuming that is true, my
question is, how would i go about updating the correct rows? Each row
will have its identity, and there will always be thousands of rows in a
selected set of data, millions in all, so iterating through and
checking each row would be very consuming. Any ideas? (or questions)

Jan 19 '07 #1
1 1443
Since you're going to store them in-between the user changing them
and when he exits the application and you want to actually make
the changes (at least, that's what it sounds like), I'd be tempted
to add a column for RowState and set it accordingly, then when you
select back to perform the actual updates, only select the ones
that are modified, added, deleted, etc.

Robin S.
------------------------------------
"Benny" <be***********@gmail.comwrote in message
news:11**********************@11g2000cwr.googlegro ups.com...
>I need to populate a table with information then in a seperate utility,
in the same application, pull that data using the same criteria that
was first used and update some values, unique to an id, then save it,
also adding any rows that did not exist before. The user may exit the
application between using these utilities, but they may also move from
one utility to the next without exiting. Im sure I would start with
populating the data in a DataTable, save the DataTable to the
database,
and pull the data into a new DataTable. Assuming that is true, my
question is, how would i go about updating the correct rows? Each row
will have its identity, and there will always be thousands of rows in
a
selected set of data, millions in all, so iterating through and
checking each row would be very consuming. Any ideas? (or questions)

Jan 19 '07 #2

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

Similar topics

5
by: grz02 | last post by:
A question on html-forms: We have an application where users will get a CD with, among other things, some html-forms for them to fill in. When they click the submit-button, the data is...
0
by: http://www.visual-basic-data-mining.net/forum | last post by:
I am using a checkbox as follows: protected System.Web.UI.WebControls.CheckBoxList cblReading; Now I store the index(checked marked) in an array for postback method, i.e., I save the selected...
9
by: Mike L | last post by:
I tried a sample of code in MSDN magazine, but now I'm stuck. What code has the best performance to populate a Data Grid with a SP? Below is the code I have, which might be completing the wrong...
3
by: Yul | last post by:
Hi, We are in the process of designing an ASP.NET app, where a user will enter some 'Customer ID' to be queried in the database. If the ID is valid, several stored procedures will be called to...
2
by: Rui Macdonald | last post by:
What is wrong with this code to populate a DropDownList? Can somebody Help me? Tnx RMac ===================================================================================== WebForm.aspx.vb
6
by: bbcrock | last post by:
Unfortunately my users are demanding this functionality: They are on a form. Click on an "add" button. An html window pops up. They add a new item that is saved to the database. The window...
5
by: Rich | last post by:
Hello, I have a search application to search data in tables in a database (3 sql server tables). I populate 2 comboboxes with with data from each table. One combobox will contain unique...
14
by: fdu.xiaojf | last post by:
Hi, I have a program which will continue to run for several days. When it is running, I can't do anything except waiting because it takes over most of the CUP time. Is it possible that the...
0
TonFrere
by: TonFrere | last post by:
Hello, I'm building a windows form application in Visual C# using VS 2005. On my form I need to populate a combobox with Invoices# linked to the current reccord's Order# value. This means that: -...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.