How can we bulk insert data in SQLServer without creating a text file from RODBC package?
问题 This question is the extension of this question How to quickly export data from R to SQL Server. Currently I am using following code: # DB Handle for config file # dbhandle <- odbcDriverConnect() # save the data in the table finally sqlSave(dbhandle, bp, "FACT_OP", append=TRUE, rownames=FALSE, verbose = verbose, fast = TRUE) # varTypes <- c(Date="datetime", QueryDate = "datetime") # sqlSave(dbhandle, bp, "FACT_OP", rownames=FALSE,verbose = TRUE, fast = TRUE, varTypes=varTypes) # DB handle