In this case, I would use the BCP (Bulk Copy Program) , which was specifically designed to load large amounts of data into MS SQL Server
Example:
bcp WorlWideImporters.Warehouse.StockItemTransactions OUT D:\BCP\StockItemTransactions_native.bcp -m 1 -b 10000 -n -e D:\BCP\Error_out.log -o D:\BCP\Output_out.log -S -T
If you need to do it programmatically, use BULK INSERT (Transact-SQL)
Example:
BULK INSERT AdventureWorks2012.Sales.SalesOrderDetail FROM 'f:\orders\lineitem.tbl' WITH ( FIELDTERMINATOR =' |', ROWTERMINATOR =' |\n' );
The links you can find more examples of use ...