RODBC and Microsoft SQL Server: Truncating Long Character Strings
问题 I am trying to query a variable from a Microsoft SQL Server database using R/RODBC. RODBC is truncating the character string at 8000 characters. Original code: truncates at 255 characters (as per RODBC documentation) library(RODBC) con_string <- odbcConnect("DSN") query_string <- "SELECT text_var FROM table_name" dat <- sqlQuery(con_string, query_string, stringsAsFactors=FALSE) Partial solution: modifying query string truncate text after 7999 characters. library(RODBC) con_string <-