user1665232
user1665232

Reputation: 231

Filling a .mdb-File with Data through VB.net

i'm using oledb and DataSets on VB.net for filling an access database (.mdb). It works in the following process:

This works so long, the problem is: I'm doing this process a few thousand times, with a few thousand datasets. From time to time, this is during longer and longer. I think it's because the dataadapter has to go through the whole database all the time and because i'm taking the whole dataset from the database all the time out, and updating it back to the database.

So my question: is there an oppurtunity to do this in an other way? Without taking the whole data out from the database and taking it back? And without going through the whole Databse? Maybe with a sql-connection and then just adding a row to the end of the database??

Thanks for your help!

Upvotes: 1

Views: 1103

Answers (1)

VMV
VMV

Reputation: 576

If You only adding rows - why not use SqlOleDBCommand? He has method .ExecuteScalar()

Upvotes: 1

Related Questions