我正在尝试执行:
con <- dbConnect(odbc(),
Driver = "SQL Server",
Server = "myServer",
Database = "myDataBase",
UID = "myUser",
PWD = "myPassword")
dbSendQuery(conn = con,
"INSERT INTO etl.VALOR_ETL (INTCODIGO,SERCODIGOEXTERNO,VALDATA,VALVALOR)
VALUES ('Generica', 'TESTE', '2018-01-01','2')" )
但是,出现以下错误:
Error in new_result(connection@ptr, statement) :
external pointer is not valid
我尝试了其他软件包,但是找不到允许查询“插入”的其他软件包。
此问题与什么有关?