I get this error:
dbWriteTable(con, "MyTable", MyDataFrame, append = TRUE)
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘dbWriteTable’ for signature ‘"RODBC", "character", "data.frame"’
- ----- My connection string ----
con<- odbcDriverConnect(connection="Driver={SQL Server};server=dev?????\dev;database=????????; uid=????????; pwd=????????; trusted_connection=yes;")
- ----- I even copied data from the table, to write it back to the table -----
MyDataFrame <- sqlQuery(con,paste("SELECT * FROM MyTable"))
- ----- Writing data back to the database table -----
dbWriteTable(con, "MyTable", MyDataFrame , append = TRUE)