Skip to content
Prev 102157 / 398500 Next

sqlSave, fast=F option, bug?

Paul MacManus <paul.macmanus <at> gmail.com> writes:
....
This seems to be a problem with SQLServer. The following example with 
Access works correctly for me, even if I close the connection in between. 
(Win2k, R 2.4.0)

Dieter Menne

-----
library(RODBC)
channel <- odbcConnectAccess("db1.mdb")
df <- data.frame(T=1, S=10)
sqlSave(channel, df, "test", rownames=F)
#odbcClose(channel)

#channel <- odbcConnectAccess("db1.mdb")
df <- data.frame(S=20, T=2)
sqlSave(channel, df, "test", rownames=F, append=T,fast=T)
odbcClose(channel)