I use the RODBC package to query the results on my SQL server. I have a specific stored procedure written when executed in my SQL Server Mgmt. studio (for example), returns a table. However, when I run the request through R, it returns character(0)
# Execute command... sqlQuery(production,"exec port.tdp_RISK2_ModelRunCompare @ModelRunId1 = 399")
It's strange when I do something like ...
sqlQuery(production,"exec sp_who")
I get a table of results ...
reference
source share