Insert One Million Rows into SQL Server - How to Use SqlBulkCopy
03-Jun-2020
This week’s video in our Data Engineering playlist is for those who are learning to code ETL and data pipelines in Microsoft’s .Net languages.
Knowing how to perform massive inserts into database tables is a very important skill! If you’re getting stuck and are either doing one insert per row,
or trying to write consecutive large multiple insert statements (SQL Server 2008+), then SqlBulkCopy is for you!
It handles the task of inserting large amounts of data in an efficient way. SqlBulkCopy is part of SqlClient,
and mastering it will give you many advantages, particularly in Microsoft environments. Though this example is written in VB.Net,
the concepts can be used for other .Net flavors, including C#. Let’s insert one million rows!
Need to build a data pipeline? Integrate your systems? Contact me today!