Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
398 views
in Technique[技术] by (71.8m points)

Why R dataframe export to SQL Server does not work?

I try to push an R table to an SQL Server database, here my script:

dbWriteTable(con, 
             name = "ci_d", 
             value = ci_d, 
             field.types = c(`thing`="varchar(3000)",
                             `notes`="varchar(3000)"
             )

and the error message :

Error in result_insert_dataframe(rs@ptr, values, batch_rows) :
nanodbc/nanodbc.cpp:1655: 22001: [Microsoft][ODBC SQL Server Driver]Troncation à droite de la cha?ne de données

Google translation from French: "Right truncation of the data string"

Anyone has an idea to solve this ?

question from:https://stackoverflow.com/questions/66064366/why-r-dataframe-export-to-sql-server-does-not-work

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...