RODBC - sqlSave - 附加操作崩溃 R

RODBC - sqlSave - Append Operation Crashes R

我正在尝试将以下数据框保存到 SQL Server 2014 table:

Observations: 1
Variables: 4
$ ValidationDate <chr> "2016-08-23"
$ DataType       <chr> "Panel"
$ MissingData    <chr> "{\"SubId\":[160823030720,160823030721,160823030722,160823030723,16082303072...
$ Comments       <chr> "Missing in ODS"

我正在执行以下 R 代码:

sqlSave(odsHandle, df, tablename = "Utility.DailyDataValidation", append = T)

当这行代码执行时,可能会暂停 15 秒,然后 R 崩溃并出现以下错误:

sqlSaveappend=TRUE 经常无法工作,因此您通常必须按照

的行编写自己的插入语句
sqlQuery(odsHandle,paste0("insert into Utility.Daily.Data.Validation values (",*paste values here separated by a comma*,")")