I have done a code where I update the given dataset into oracle database using the adapter.Update method in .NET 2.0
However the same piece of code gives exception
“Update requires a valid InsertCommand when passed DataRow collection with new rows”
In case I traverse the dataset and insert each row , it takes a lot of time(over 5000 records).
Please suggest a way to update whole dataset into database at a time.
Thanks in advance
The way to do this is one row at a time
Here for each row is read from the excel and placed in the dataset's data table. Then the update function of the data adapter is called. hence, in case, if the dataset has 40 rows, the update function will be called 40 times.