Skip to content
Prev 132134 / 398506 Next

truncated fields with RODBC

For the record, the problem with truncated fields below was solved by increasing the Max LongVarChar variable in the data source settings page 1 from 8190 to 32760. So it was a psqlODBC problem not an RODBC problem. The command nchar(Grids$Grids) helped me see how large the fields actually were and what size of number I was looking for. 

cheers,
Mikkel


----- Original Message ----
From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
To: Mikkel Grum <mi2kelgrum at yahoo.com>
Cc: r-help at stat.math.ethz.ch
Sent: Sunday, November 25, 2007 2:05:37 PM
Subject: Re: [R] truncated fields with RODBC


You need to study the RODBC documentation: you haven't set the type of
 the 
character fields in the database table correctly (in fact, you seem not
 
to have set them at all, hence will get the default of varchar(255)).

The 64k limit is for reading, not writing.

As ever, full details and a reproducible example are needed for people
 to 
help you fully.
On Sat, 24 Nov 2007, Mikkel Grum wrote: