bulk-load-and-bulk-copy
Installation
SKILL.md
Load rows fast: BULK INSERT from Blob Storage, bcp, and the driver bulk APIs
Moves rows into a table that already exists, and kills the two habits carried over from SQL Server: a local file path, and a minimal-logging tune-up. Designing that table is another job.
Every option and flag below comes from Microsoft Learn's BULK INSERT, bcp utility,
sys.dm_user_db_resource_governance and "Resource management in Azure SQL Database" pages.
Scope
- Loading rows into a table that already exists. Designing that table is
design-azure-sql-schema. - Establishing the connection is
connect-from-python,connect-from-dotnetorconnect-from-typescript-and-node. - A DACPAC or BACPAC export or import of a whole database is
sqlpackage-import-export.
The correction
A local path is refused before the file is opened. BULK INSERT and OPENROWSET(BULK ...)
both fail on a filesystem path with: