The connection setup for both is different and can result in this error. Do we need to explain connection settings in more detail so that people can just copy/paste syntax? Could probably use headings for option 1 and option 2 descriptions too to make them a bit clearer.
RODBC::sqlQuery() lacks a connection set-up, so people are trying to use the DBI connection to run it. Could move the whole RODBC thing to a separate footnote or appendix?
The connection setup for both is different and can result in this error. Do we need to explain connection settings in more detail so that people can just copy/paste syntax? Could probably use headings for option 1 and option 2 descriptions too to make them a bit clearer.