I have like 12,000 rows in a DataTable and it is timing out when trying to WriteToServer. Is there a way I can write just a portion of the DataTable at a time to the database rather than all at once? I have a bad internet connection to my database at the moment. If I can just write 500 rows at a time, I can avoid the timeout. Is there a way to do this?
Share
You should take a look at
SqlBulkCopy.BatchSizeReference here