Hi - Just wondering what anyone thinks would be the most efficient way to insert potentially 15 - 20 thousand records into Sql Server 2000 from an asp.net application?
My scenario is that I'm pulling data in from a text file that could contain up to 20,000 rows into a dataset. Then I validate each dataset row to make sure each column contains valid data. Then I need to save each dataset row into a sql table that will hold the valid data. If there's a validation error then I throw the record into an error table.
Obviously this can be quite time consuming so I'm trying to decide the most efficient way to accomplish this task.
Thanks!
My scenario is that I'm pulling data in from a text file that could contain up to 20,000 rows into a dataset. Then I validate each dataset row to make sure each column contains valid data. Then I need to save each dataset row into a sql table that will hold the valid data. If there's a validation error then I throw the record into an error table.
Obviously this can be quite time consuming so I'm trying to decide the most efficient way to accomplish this task.
Thanks!