sqlQuery
function has as.is
option, from the RODBC manual:
as.is which (if any) columns returned as character should be converted to another type? Allowed values are as for read.table. See ‘Details’.
Details
... ifas.is
is true for a column, it is returned as a character vector. Otherwise (where detected) date, datetime and timestamp values are converted to the "Date" or "POSIXct" class. ...