Unable to append to SQL Server table using sqlSave in R

前端 未结 3 1139
灰色年华
灰色年华 2021-01-13 05:40

I am trying to update a SQL table using sqlSave function of RODBC package in R. Data is present in a data frame. When I try to run the command:

sqlSave(DBCon         


        
3条回答
  •  无人共我
    2021-01-13 06:17

    Check using verbose=TRUE in sqlSave argument if any of the columnames in the insert query has the same that you have in your original table.

    In my table I used to have a columname with space (the same if it has numbers o different character). It won´t work because sqlSave will remove those character when it creates the query.

提交回复
热议问题