I have an Excel file from which I have to extract the required data and save it to a database. I know by using Range we can get a particular range of data. But my data that was to be extracted was a bit large. So can anyone suggest which was the best and simple method to retrieve the data and store the information in a database?
I would like to read the data from A10 to an unknown range. My data will be as follows

As per marked with red after that data should go in to the database column by column I will do that if anyone can suggest the best method to read the remaining columns too.
If you still need to do it from code there is only one way of doing. As per your question you said that your data will start from
A10, first of all get theUsedRangeofexcelas followsAs there are only 2
columnsget therow countandcolumn countof excel ad followsLater start your loop as follows