MS-SQL Bulk Insert with RODBC

前端 未结 6 1785
南方客
南方客 2020-12-18 03:10

Is it possible to perform a bulk insert into an MS-SQL Server (2000, 2005, 2008) using the RODBC package?

I know that I can do this using freebcp, but I\'m curious i

6条回答
  •  我在风中等你
    2020-12-18 03:48

    Our n2khelper package can use bcp (bulkcopy) when it is available. When not available it falls back to multiple INSERT statements.

    You can find the package on https://github.com/INBO-Natura2000/n2khelper

    Install it with devtools::install_git("INBO-Natura2000/n2khelper") and look for the odbc_insert() function.

提交回复
热议问题