G
Guest
Well here is what I want to do. I'm writting an aplication that will run
through a data file, and either insert the records if they do not exist in
the database, or update them if they do exist. I'm inserting/updating over
100,000 records. The way I'm currently doing this is creating a temp table,
Checking if a row exists in the Actual database, if it does I am bringing it
to my temp table via a Fill. I'm then running a
LoadDataRow(strTokens,false); to add the row to my temporary table. If it's
an insert I'm just directly running LoadDataRow etc. to add it to my table.
Once all of my data has been added/updated to my temp table i run, the table
update.
da.Update(dsInfo,strLoadTable);
This process takes a long time to run. Is there a more efficient way i
should be doing this?
through a data file, and either insert the records if they do not exist in
the database, or update them if they do exist. I'm inserting/updating over
100,000 records. The way I'm currently doing this is creating a temp table,
Checking if a row exists in the Actual database, if it does I am bringing it
to my temp table via a Fill. I'm then running a
LoadDataRow(strTokens,false); to add the row to my temporary table. If it's
an insert I'm just directly running LoadDataRow etc. to add it to my table.
Once all of my data has been added/updated to my temp table i run, the table
update.
da.Update(dsInfo,strLoadTable);
This process takes a long time to run. Is there a more efficient way i
should be doing this?