There are numerous ways to get data into SQL Server. One of the fastest and least clunky-to-set-up ways is by using the BULK INSERT statement to ingest large CSVs.
When you use BULK INSERT, the table that you are importing data into has to match the schema of the file you are importing. I teach you how to work around this limitation in the lesson titled Large CSVs Into Data Warehouse Staging Tables.
BULK INSERT Syntax
In [ ]:
BULK INSERT YourSchema.YourTable
FROM 'FullyQualifiedFilePath\YourFile.csv'
Examples
Basic Bulk Insert Example
In this example, we will use the "Customer Signature for Churn Analysis" dataset. Not every dataset you import is going to be clean and perfect. Sometimes you have to give instructions to BULK INSERT. In this case, we have to specify how the columns are separated in the file, and we need to tell it to skip the header row.