Import-DbaCsv
Chrissy LeMaire (@cl), netnerds.net
Import-DbaCsv View Source Chrissy LeMaire (@cl), netnerds.net Windows, Linux, macOS Synopsis Imports CSV files into SQL Server tables using high-performance bulk copy operations. Description Import-DbaCsv uses .NET’s SqlBulkCopy class to efficiently load CSV data into SQL Server tables, handling files of any size from small datasets to multi-gigabyte imports. The function wraps the entire operation in a transaction, so any failure or interruption rolls back all changes automatically. When the target table doesn’t exist, you can use -AutoCreateTable to create it on the fly with basic nvarchar(max) columns.
Read more
dbatools