MS-SQL Bulk Insert with RODBC

ephpostfacto picture ephpostfacto · Sep 9, 2009 · Viewed 9.6k times · Source

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 if the RODBC package implements this portion of the Microsoft SQL API and if not, how difficult it would be to implement it.

Answer

quickreaction picture quickreaction · Feb 27, 2017

check out the new odbc and DBI packages. DBI::dbWriteTable writes around 20,000 records per second... Much much faster than the Row Inserts from RODBC::sqlSave()