What is the best way to upload a large csv data file into SQL server using C# ? The file contains about 30,000 rows and 25 columns.
csv
This technique uses the SQLBulkCopy() facility, but does not read the entire file into memory.
The trick is that it implements a IDataReader class to read the .csv file.
https://www.codeproject.com/Tips/1029831/Fast-and-Simple-IDataReader-Implementation-to-Read