I am trying to run a simple query using R which is listed below. I am connected to odbc and it works fine with other queries.
MyQuery <- (dbSendQuery(conn, "Select count(ABC) FROM TABLE_1 GROUP BY YEAR(DATE_TIME)"))
When I run the above mentioned query in R environment it shows the below following result. The same query works fine in SQL Management Studio and return me the counted values.
<OdbcResult>
Rows Fetched:0 [incomplete]
Changed: 0
When I view it is shows
Name Type Value
MyQuery S4(odbc:odbcResult) S4 Object of Class OdbcResult
Does this returns me the value location instead of actual values ?