B
borophyll
Hi, I am developing an application which accesses an SQL server
database, in which certain tables contain millions of records.
Periodically we receive updates to the database from another
organisation (in the form of Access databases) and need to process
through every record in the Access database, compare the current
record to the existing record, and update with any changes found.
Because there are millions of records, it would be unwise to read the
Access table into a DataSet, as this would require too much memory.
Rather, I am guessing that I need to read a portion of the table in at
a time (say 1000 records), process through them, and then read the
next 1000 records, and so on. Is this possible? If it is I'm not
sure how to do it. I guess I need some sort of a SELECT command which
remembers the position of the last record selected, and continues from
that. I am new at this stuff, so any help as to which avenue I should
be heading down would be great.
Thanks,
B.
database, in which certain tables contain millions of records.
Periodically we receive updates to the database from another
organisation (in the form of Access databases) and need to process
through every record in the Access database, compare the current
record to the existing record, and update with any changes found.
Because there are millions of records, it would be unwise to read the
Access table into a DataSet, as this would require too much memory.
Rather, I am guessing that I need to read a portion of the table in at
a time (say 1000 records), process through them, and then read the
next 1000 records, and so on. Is this possible? If it is I'm not
sure how to do it. I guess I need some sort of a SELECT command which
remembers the position of the last record selected, and continues from
that. I am new at this stuff, so any help as to which avenue I should
be heading down would be great.
Thanks,
B.