简体   繁体   English

使用Python将大型CSV文件批量加载到MSSQL的最快方法是什么?

[英]What is the fastest way to bulk load a large CSV file into MSSQL using Python?

What is the fastest way to import data into MSSQL using Python with these requirements: 满足以下要求的使用Python将数据导入MSSQL的最快方法是:

  1. Large file (too big for memory, no row based inserts). 大文件(对于内存太大,没有基于行的插入)。
  2. Minimal logging. 最少的日志记录。
  3. CSV file. CSV档案。
  4. CSV file column may contain single and double quotes. CSV文件列可能包含单引号和双引号。
  5. CSV file Column may contain line breaks. CSV文件列可能包含换行符。

Thanks. 谢谢。

从python代码在Windows或Windows的freebcp中调用BCP

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM